File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
shared/test/common/os_interface/linux Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ uint32_t mkfifoFuncCalled = 0;
73
73
bool failMkfifo = 0 ;
74
74
bool failFcntl = false ;
75
75
bool failFcntl1 = false ;
76
+ bool failAccess = false ;
76
77
77
78
std::vector<void *> mmapVector (64 );
78
79
std::vector<void *> mmapCapturedExtendedPointers (64 );
@@ -237,6 +238,9 @@ unsigned long getNumThreads() {
237
238
238
239
int access (const char *pathName, int mode) {
239
240
accessFuncCalled++;
241
+ if (failAccess) {
242
+ return -1 ;
243
+ }
240
244
if (F_OK == mode) {
241
245
if (mkfifoPathNamePassed == pathName) {
242
246
return 0 ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ extern uint32_t mkfifoFuncCalled;
81
81
extern bool failMkfifo;
82
82
extern bool failFcntl;
83
83
extern bool failFcntl1;
84
+ extern bool failAccess;
84
85
85
86
extern std::vector<void *> mmapVector;
86
87
extern std::vector<void *> mmapCapturedExtendedPointers;
You can’t perform that action at this time.
0 commit comments