test: Fixed flock wrapper to return success for non-negative file descriptor
Related-To: NEO-12952 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
parent
d982d2a77e
commit
3f9ac1512d
|
@ -418,7 +418,7 @@ int mkstemp(char *fileName) {
|
||||||
int flock(int fd, int flag) {
|
int flock(int fd, int flag) {
|
||||||
flockCalled++;
|
flockCalled++;
|
||||||
|
|
||||||
if (fd > 0 && flockRetVal == 0) {
|
if (fd >= 0 && flockRetVal == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue