Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon] / src / tests / vm / child-qsort.c
index 355f4ebfb2b3f5dd62cb8b83575d8296059a852b..e243704c93dc5732f89a52ca18187aa3d5c81e29 100644 (file)
@@ -9,8 +9,6 @@
 #include "tests/main.h"
 #include "tests/vm/qsort.h"
 
-const char *test_name = "child-qsort";
-
 int
 main (int argc UNUSED, char *argv[]) 
 {
@@ -18,6 +16,7 @@ main (int argc UNUSED, char *argv[])
   unsigned char buf[128 * 1024];
   size_t size;
 
+  test_name = "child-qsort";
   quiet = true;
 
   CHECK ((handle = open (argv[1])) > 1, "open \"%s\"", argv[1]);