diff mbox

Use test-driver in nptl/tst-fork3.c

Message ID mvmr2z5v41g.fsf@suse.de
State New
Headers show

Commit Message

Andreas Schwab May 31, 2017, 8:11 a.m. UTC
This test also sometimes causes the qemu linux-user emulation to hang.
Committed.

Andreas.

	* nptl/tst-fork3.c: Include <support/test-driver.c>.
	(main): Rename to do_test and make static.
diff mbox

Patch

diff --git a/nptl/tst-fork3.c b/nptl/tst-fork3.c
index 8fee264436..33d93f2a04 100644
--- a/nptl/tst-fork3.c
+++ b/nptl/tst-fork3.c
@@ -87,8 +87,8 @@  tf1 (void *arg)
 }
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   initial_pid = getpid ();
 
@@ -104,3 +104,5 @@  main (void)
 
   return 1;
 }
+
+#include <support/test-driver.c>