diff --git a/src/xpdev/wraptest.c b/src/xpdev/wraptest.c index 9c67f45ac3ebcc338863fe5ad22e48d771126196..2c72679179c6c6400c48422c6ec0a286b4cfb71e 100644 --- a/src/xpdev/wraptest.c +++ b/src/xpdev/wraptest.c @@ -111,6 +111,10 @@ int main() printf("Locks in first thread survive open()/close() in other thread\n"); else printf("!FAILURE lock() in first thread lost by open()/close() in other thread\n"); + if(lock(fd,LOCK_OFFSET+LOCK_LEN+1,LOCK_LEN)) + printf("!FAILURE file locking\n"); + else + printf("SUCCESS! Record locking\n"); close(fd); /* getch test */