Browse Source

nptl: fork() is not available for noMMU, skip tests

Waldemar Brodkorb 1 year ago
parent
commit
a7c8210e24

+ 12 - 0
test/nptl/tst-atfork1.c

@@ -24,6 +24,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static int val;
 static int val;
 
 
 
 
@@ -118,3 +120,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-atfork2.c

@@ -25,6 +25,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 /* Must be exported.  */
 /* Must be exported.  */
 int val;
 int val;
 
 
@@ -154,3 +156,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-barrier2.c

@@ -26,6 +26,7 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int
 static int
 do_test (void)
 do_test (void)
@@ -182,3 +183,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-basic4.c

@@ -25,6 +25,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static void
 static void
 final_test (void)
 final_test (void)
 {
 {
@@ -98,3 +100,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-cancel16.c

@@ -26,6 +26,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static pthread_barrier_t b2;
 static pthread_barrier_t b2;
 static int fd;
 static int fd;
@@ -229,3 +230,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-cancel21.c

@@ -24,6 +24,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <unistd.h>
 #include <unistd.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int fd[4];
 static int fd[4];
 static pthread_barrier_t b;
 static pthread_barrier_t b;
@@ -291,3 +292,13 @@ do_test (void)
 #define TIMEOUT 40
 #define TIMEOUT 40
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-cancel4.c

@@ -39,6 +39,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 #if defined(__GLIBC__) || defined(__UCLIBC__)
 #if defined(__GLIBC__) || defined(__UCLIBC__)
 #define SIGCANCEL   __SIGRTMIN
 #define SIGCANCEL   __SIGRTMIN
 #else
 #else
@@ -2396,3 +2398,13 @@ do_test (void)
 #define TIMEOUT 60
 #define TIMEOUT 60
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-cond12.c

@@ -25,6 +25,7 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static char fname[] = "/tmp/tst-cond12-XXXXXX";
 static char fname[] = "/tmp/tst-cond12-XXXXXX";
 static int fd;
 static int fd;
@@ -193,3 +194,13 @@ do_test (void)
 
 
   return 0;
   return 0;
 }
 }
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-cond4.c

@@ -26,6 +26,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <stdint.h>
 #include <stdint.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 int *condition;
 int *condition;
 
 
@@ -261,3 +262,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-cond6.c

@@ -28,6 +28,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <stdint.h>
 #include <stdint.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 int *condition;
 int *condition;
 
 
@@ -231,3 +232,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-cpuclock1.c

@@ -26,6 +26,8 @@
 #include <signal.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
+
 /* This function is intended to rack up both user and system time.  */
 /* This function is intended to rack up both user and system time.  */
 static void
 static void
 chew_cpu (void)
 chew_cpu (void)
@@ -304,3 +306,13 @@ do_test (void)
 #define TIMEOUT 5
 #define TIMEOUT 5
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-cputimer3.c

@@ -13,6 +13,8 @@
 #include <signal.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
+
 static clockid_t child_clock;
 static clockid_t child_clock;
 
 
 #define TEST_CLOCK child_clock
 #define TEST_CLOCK child_clock
@@ -128,3 +130,13 @@ setup_test (void)
 #endif
 #endif
 
 
 #include "tst-timer4.c"
 #include "tst-timer4.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-exec2.c

@@ -28,6 +28,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static void *
 static void *
 tf (void *arg)
 tf (void *arg)
 {
 {
@@ -151,3 +153,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-exec3.c

@@ -28,6 +28,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static void *
 static void *
 tf (void *arg)
 tf (void *arg)
@@ -150,3 +151,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-flock2.c

@@ -27,6 +27,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t lock2 = PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t lock2 = PTHREAD_MUTEX_INITIALIZER;
 static int fd;
 static int fd;
@@ -258,3 +260,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-fork1.c

@@ -25,6 +25,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static void *
 static void *
 thread_function (void * arg)
 thread_function (void * arg)
 {
 {
@@ -118,3 +120,13 @@ main (void)
 
 
   return result;
   return result;
 }
 }
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-fork2.c

@@ -24,6 +24,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static pid_t initial_pid;
 static pid_t initial_pid;
 
 
 
 
@@ -87,3 +89,13 @@ main (void)
 
 
   return status;
   return status;
 }
 }
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-fork3.c

@@ -24,6 +24,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static pid_t initial_pid;
 static pid_t initial_pid;
 
 
@@ -105,3 +106,13 @@ main (void)
 
 
   return 1;
   return 1;
 }
 }
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-fork4.c

@@ -24,6 +24,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include <string.h>
 #include <string.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int
 static int
 do_test (void)
 do_test (void)
@@ -62,3 +63,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-getpid3.c

@@ -7,6 +7,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static pid_t pid;
 static pid_t pid;
 
 
 static void *
 static void *
@@ -112,3 +114,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-mqueue1.c

@@ -29,6 +29,8 @@
 #include "tst-mqueue.h"
 #include "tst-mqueue.h"
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static int
 static int
 intcmp (const void *a, const void *b)
 intcmp (const void *a, const void *b)
 {
 {
@@ -415,3 +417,13 @@ do_test (void)
 }
 }
 
 
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-mqueue3.c

@@ -34,6 +34,8 @@
 #if _POSIX_THREADS
 #if _POSIX_THREADS
 # include <pthread.h>
 # include <pthread.h>
 
 
+#ifdef __ARCH_USE_MMU__
+
 static pid_t pid;
 static pid_t pid;
 static mqd_t m;
 static mqd_t m;
 static const char message[] = "hello";
 static const char message[] = "hello";
@@ -243,3 +245,13 @@ do_test (void)
 #endif
 #endif
 
 
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-mqueue5.c

@@ -34,6 +34,8 @@
 #include "tst-mqueue.h"
 #include "tst-mqueue.h"
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 #define TIMEOUT 3
 #define TIMEOUT 3
 
 
 #if _POSIX_THREADS
 #if _POSIX_THREADS
@@ -1012,3 +1014,13 @@ do_test (void)
 #endif
 #endif
 
 
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-mutex4.c

@@ -26,6 +26,7 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int
 static int
 do_test (void)
 do_test (void)
@@ -188,3 +189,13 @@ do_test (void)
 #define TIMEOUT 4
 #define TIMEOUT 4
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-mutex9.c

@@ -28,6 +28,8 @@
 #include <sys/time.h>
 #include <sys/time.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 //int gettimeofday(struct timeval *tv, struct timezone *tz);
 //int gettimeofday(struct timeval *tv, struct timezone *tz);
 
 
 
 
@@ -189,3 +191,13 @@ do_test (void)
 #define TIMEOUT 3
 #define TIMEOUT 3
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-rwlock12.c

@@ -27,6 +27,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static int
 static int
 do_test (void)
 do_test (void)
 {
 {
@@ -205,3 +207,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-rwlock4.c

@@ -26,6 +26,7 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int
 static int
 do_test (void)
 do_test (void)
@@ -187,3 +188,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-sem3.c

@@ -27,6 +27,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 int
 int
 do_test (void)
 do_test (void)
@@ -143,3 +144,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-sem4.c

@@ -24,6 +24,8 @@
 #include <unistd.h>
 #include <unistd.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 static void
 static void
 remove_sem (int status, void *arg)
 remove_sem (int status, void *arg)
 {
 {
@@ -151,3 +153,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-signal1.c

@@ -27,6 +27,7 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static sigset_t ss;
 static sigset_t ss;
 static pthread_barrier_t *b;
 static pthread_barrier_t *b;
@@ -187,3 +188,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-signal2.c

@@ -27,6 +27,7 @@
 #include <string.h>
 #include <string.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static sigset_t ss;
 static sigset_t ss;
 static pthread_barrier_t *b;
 static pthread_barrier_t *b;
@@ -196,3 +197,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 11 - 0
test/nptl/tst-spin2.c

@@ -26,6 +26,7 @@
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
 
 
+#ifdef __ARCH_USE_MMU__
 
 
 static int
 static int
 do_test (void)
 do_test (void)
@@ -156,3 +157,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif

+ 12 - 0
test/nptl/tst-tsd6.c

@@ -6,6 +6,8 @@
 #include <sys/wait.h>
 #include <sys/wait.h>
 #include "../test-skeleton.h"
 #include "../test-skeleton.h"
 
 
+#ifdef __ARCH_USE_MMU__
+
 #define NKEYS 100
 #define NKEYS 100
 static pthread_key_t keys[NKEYS];
 static pthread_key_t keys[NKEYS];
 static pthread_barrier_t b;
 static pthread_barrier_t b;
@@ -88,3 +90,13 @@ do_test (void)
 
 
 #define TEST_FUNCTION do_test ()
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
 #include "../test-skeleton.c"
+
+#else
+
+int main(void)
+{
+    printf("Skipping test on non-mmu host!\n");
+    return 23;
+}
+
+#endif