diff options
author | Tor Lillqvist <tml@novell.com> | 2005-03-20 10:43:38 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-03-20 10:43:38 +0000 |
commit | 20378332aea3a273a27bd0d40451811b21a7a1f6 (patch) | |
tree | 57c7e140ed4e31079f51ba1f262f1b39d3b885c7 /tests/spawn-test.c | |
parent | 6b55164587cc96639e8c2d082ecb29ee7b0ff0bb (diff) |
Print more detailled output from the timer tests. Don't print home
2005-03-20 Tor Lillqvist <tml@novell.com>
* tests/testglib.c (main): Print more detailled output from the
timer tests. Don't print home directory twice. Test
g_win32_error_message().
* tests/spawn-test.c (run_tests): On Win32, run netstat instead of
ipconfig. On Windows XP collecting output from ipconfig doesn't
seem to work for some reason.
Diffstat (limited to 'tests/spawn-test.c')
-rw-r--r-- | tests/spawn-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/spawn-test.c b/tests/spawn-test.c index efe9afea6..f4a7eed14 100644 --- a/tests/spawn-test.c +++ b/tests/spawn-test.c @@ -96,9 +96,9 @@ run_tests (void) } #else #ifdef G_OS_WIN32 - printf ("Running ipconfig synchronously, collecting its output\n"); + printf ("Running netstat synchronously, collecting its output\n"); - if (!g_spawn_command_line_sync ("ipconfig /all", + if (!g_spawn_command_line_sync ("netstat -n", &output, &erroutput, NULL, &err)) { @@ -111,9 +111,9 @@ run_tests (void) g_assert (output != NULL); g_assert (erroutput != NULL); - if (strstr (output, "IP Configuration") == 0) + if (strstr (output, "Active Connections") == 0) { - printf ("output was '%s', should have contained 'IP Configuration'\n", + printf ("output was '%s', should have contained 'Active Connections'\n", output); exit (1); |