test: Add errno check to SysCalls wrapper for mkfifo
Related-To: NEO-11817 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
parent
a5e19330e9
commit
3560b016bd
|
@ -522,6 +522,11 @@ long sysconf(int name) {
|
|||
int mkfifo(const char *pathname, mode_t mode) {
|
||||
mkfifoFuncCalled++;
|
||||
if (failMkfifo) {
|
||||
errno = 0;
|
||||
if (setErrno != 0) {
|
||||
errno = setErrno;
|
||||
setErrno = 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
if (nullptr == pathname) {
|
||||
|
|
|
@ -82,6 +82,7 @@ extern bool failMkfifo;
|
|||
extern bool failFcntl;
|
||||
extern bool failFcntl1;
|
||||
extern bool failAccess;
|
||||
extern int setErrno;
|
||||
|
||||
extern std::vector<void *> mmapVector;
|
||||
extern std::vector<void *> mmapCapturedExtendedPointers;
|
||||
|
|
Loading…
Reference in New Issue