Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon] / src / tests / filesys / base / child-syn-read.c
index 77a5e26252f6116cb2b25e2c7add0bb5e9787cb1..27ee59d99d03f36f12d10e01f7ddd16e2889d264 100644 (file)
@@ -11,8 +11,6 @@
 #include "tests/lib.h"
 #include "tests/filesys/base/syn-read.h"
 
-const char *test_name = "child-syn-read";
-
 static char buf[BUF_SIZE];
 
 int
@@ -22,6 +20,7 @@ main (int argc, const char *argv[])
   int fd;
   size_t i;
 
+  test_name = "child-syn-read";
   quiet = true;
   
   CHECK (argc == 2, "argc must be 2, actually %d", argc);