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