summaryrefslogtreecommitdiff
path: root/test/nptl/tst-cpuclock1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nptl/tst-cpuclock1.c')
-rw-r--r--test/nptl/tst-cpuclock1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/nptl/tst-cpuclock1.c b/test/nptl/tst-cpuclock1.c
index 9d68ec5..a7e76be 100644
--- a/test/nptl/tst-cpuclock1.c
+++ b/test/nptl/tst-cpuclock1.c
@@ -26,6 +26,8 @@
#include <signal.h>
#include <sys/wait.h>
+#ifdef __ARCH_USE_MMU__
+
/* This function is intended to rack up both user and system time. */
static void
chew_cpu (void)
@@ -304,3 +306,13 @@ do_test (void)
#define TIMEOUT 5
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+ printf("Skipping test on non-mmu host!\n");
+ return 23;
+}
+
+#endif