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

login
register
mail settings
Submitter Andreas Schwab
Date May 31, 2017, 8:11 a.m.
Message ID <mvmr2z5v41g.fsf@suse.de>
Download mbox | patch
Permalink /patch/20648/
State New
Headers show

Comments

Andreas Schwab - May 31, 2017, 8:11 a.m.
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.

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>