diff --git a/src/xpdev/wraptest.c b/src/xpdev/wraptest.c index 49e0993efd894a448dbfde23baded07ecef407d3..9c67f45ac3ebcc338863fe5ad22e48d771126196 100644 --- a/src/xpdev/wraptest.c +++ b/src/xpdev/wraptest.c @@ -64,6 +64,7 @@ int main() else SLEEP(1); } + printf("Waiting for all sopen_child_threads to close...\n"); SLEEP(5000); /* wait for all threads to quit */ /* Exclusive sopen test */ @@ -96,9 +97,8 @@ int main() else printf("!FAILURE lock() non-functional (or file already locked)\n"); if(lock(fd,LOCK_OFFSET,LOCK_LEN)==0) - printf("Subsequent lock succeeded\n"); - else - perror("!Subsequent lock of "LOCK_FNAME); + printf("!FAILURE: Subsequent lock of region was allowed\n"); + if(_beginthread( lock_test_thread /* entry point */ ,0 /* stack size (0=auto) */