This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Use test-driver in nptl/tst-fork3.c


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 --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>
-- 
2.13.0

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]