This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Use test-driver in nptl/tst-fork3.c
- From: Andreas Schwab <schwab at suse dot de>
- To: libc-alpha at sourceware dot org
- Date: Wed, 31 May 2017 10:11:55 +0200
- Subject: [PATCH] Use test-driver in nptl/tst-fork3.c
- Authentication-results: sourceware.org; auth=none
- References: <mvmziel88gw.fsf@suse.de>
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."