Patchwork Use test-driver in ntpl/tst-fork1.c

login
register
mail settings
Submitter Andreas Schwab
Date May 10, 2017, 7:41 a.m.
Message ID <mvmziel88gw.fsf@suse.de>
Download mbox | patch
Permalink /patch/20363/
State New
Headers show

Comments

Andreas Schwab - May 10, 2017, 7:41 a.m.
This avoids stalling the testsuite run when running it with the qemu
linux-user emulation.  Committed.

Andreas.

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

Patch

diff --git a/nptl/tst-fork1.c b/nptl/tst-fork1.c
index 9bf1132c7b..86c0f555ac 100644
--- a/nptl/tst-fork1.c
+++ b/nptl/tst-fork1.c
@@ -64,8 +64,8 @@  thread_function (void * arg)
 #define N 5
 static const int t[N] = { 7, 6, 5, 4, 3 };
 
-int
-main (void)
+static int
+do_test (void)
 {
   pthread_t th[N];
   int i;
@@ -117,3 +117,5 @@  main (void)
 
   return result;
 }
+
+#include <support/test-driver.c>