Revert "tests/spawn-*.c: fix on Windows"
authorMatthias Clasen <mclasen@redhat.com>
Wed, 19 Dec 2012 20:20:05 +0000 (15:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Dec 2012 20:20:05 +0000 (15:20 -0500)
This reverts commit 602714a8dae08e395c8834aa059375de7dd877c0.

glib/tests/Makefile.am
glib/tests/spawn-multithreaded.c
glib/tests/spawn-singlethread.c

index 1431075..983259b 100644 (file)
@@ -249,12 +249,10 @@ TEST_PROGS            += 1bit-emufutex
 
 TEST_PROGS += spawn-multithreaded
 spawn_multithreaded_SOURCES = spawn-multithreaded.c
-spawn_multithreaded_CFLAGS   = -DEXEEXT=\"$(EXEEXT)\"
 spawn_multithreaded_LDADD    = $(progs_ldadd)
 
 TEST_PROGS += spawn-singlethread
 spawn_singlethread_SOURCES = spawn-singlethread.c
-spawn_singlethread_CFLAGS   = -DEXEEXT=\"$(EXEEXT)\"
 spawn_singlethread_LDADD    = $(progs_ldadd)
 
 TEST_PROGS += gwakeup
index 781ae4a..baccf36 100644 (file)
@@ -222,11 +222,11 @@ main (int   argc,
   g_test_init (&argc, &argv, NULL);
 
   dirname = g_path_get_dirname (argv[0]);
-  echo_prog_path = g_build_filename (dirname, "test-spawn-echo" EXEEXT, NULL);
+  echo_prog_path = g_build_filename (dirname, "test-spawn-echo", NULL);
   if (!g_file_test (echo_prog_path, G_FILE_TEST_EXISTS))
     {
       g_free (echo_prog_path);
-      echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo" EXEEXT, NULL);
+      echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo", NULL);
     }
   g_free (dirname);
 
index ffc1601..4898b72 100644 (file)
@@ -194,11 +194,11 @@ main (int   argc,
   g_test_init (&argc, &argv, NULL);
 
   dirname = g_path_get_dirname (argv[0]);
-  echo_prog_path = g_build_filename (dirname, "test-spawn-echo" EXEEXT, NULL);
+  echo_prog_path = g_build_filename (dirname, "test-spawn-echo", NULL);
   if (!g_file_test (echo_prog_path, G_FILE_TEST_EXISTS))
     {
       g_free (echo_prog_path);
-      echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo" EXEEXT, NULL);
+      echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo", NULL);
     }
 #ifndef SRCDIR
 #define SRCDIR dirname