diff --git a/src/xpdev/wraptest.c b/src/xpdev/wraptest.c
index 5b254d8a55f6f23d1a2cf68f54bd708f435974e9..103ff53fa6fd6148d1f77b5428b326d10777bcea 100644
--- a/src/xpdev/wraptest.c
+++ b/src/xpdev/wraptest.c
@@ -64,6 +64,7 @@ int main()
 		else
 			SLEEP(1);
 	}
+	SLEEP(5000);	/* wait for all threads to quit */
 
 	/* Exclusive sopen test */
 	printf("\nsopen() test\n");