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:
Slawomir Milczarek 2025-03-28 14:41:46 +00:00 committed by Compute-Runtime-Automation
parent a5e19330e9
commit 3560b016bd
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -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;