mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
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;
|
||||
|
||||
Reference in New Issue
Block a user