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:
Slawomir Milczarek 2025-02-27 14:26:23 +00:00 committed by Compute-Runtime-Automation
parent d982d2a77e
commit 3f9ac1512d
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ int mkstemp(char *fileName) {
int flock(int fd, int flag) {
flockCalled++;
if (fd > 0 && flockRetVal == 0) {
if (fd >= 0 && flockRetVal == 0) {
return 0;
}