From 439ffb737575bf72ffad128ad5a2d8fb8dc687dc Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 9 Apr 2003 00:09:44 +0000
Subject: [PATCH] Subsequent lock of same region should fail.

---
 src/xpdev/wraptest.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xpdev/wraptest.c b/src/xpdev/wraptest.c
index 49e0993efd..9c67f45ac3 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) */
-- 
GitLab