about summary refs log tree commit diff
path: root/sysdeps/mips/tst-mode-switch-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mips/tst-mode-switch-1.c')
-rw-r--r--sysdeps/mips/tst-mode-switch-1.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/mips/tst-mode-switch-1.c b/sysdeps/mips/tst-mode-switch-1.c
index 1a26e4c7b5..ebbdd3d9eb 100644
--- a/sysdeps/mips/tst-mode-switch-1.c
+++ b/sysdeps/mips/tst-mode-switch-1.c
@@ -71,8 +71,8 @@ thread_function (void * arg __attribute__ ((unused)))
   return NULL;
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   int count = sysconf (_SC_NPROCESSORS_ONLN);
   if (count <= 0)
@@ -121,3 +121,6 @@ main (void)
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../../test-skeleton.c"