Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon] / src / tests / userprog / child-close.c
index ac948c8efe6978e98960fceda85218b84a3c3415..866e159a87b4293150fc2ee6c9a647f664ef5aa1 100644 (file)
 #include <syscall.h>
 #include "tests/lib.h"
 
-const char *test_name = "child-close";
-
 int
 main (int argc UNUSED, char *argv[]) 
 {
+  test_name = "child-close";
+
   msg ("begin");
   if (!isdigit (*argv[1]))
     fail ("bad command-line arguments");