summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-26 12:10:32 +0100
committerThomas Haller <thaller@redhat.com>2015-04-09 11:21:03 +0200
commitd0172aa4d67714708bc50332818dcc70056d5c1d (patch)
treef4b97d2184a0818cd27208a795b7ff50a3b6ec0e
parent3b014ddef8cfc243545d75e93f2e92077d55048c (diff)
downloadNetworkManager-d0172aa4d67714708bc50332818dcc70056d5c1d.tar.gz
platform/test: use g_print() in platform tests to indicate skip/fail
Don't use g_message() in platform tests for test messages. This is a partial backport of commit 5fd3827, "route-manager/test: fix usage of g_assert_expect_message()" (cherry picked from commit 5fd3827e49af9ce7e1ebac35a9471aaca04b2bc0)
-rw-r--r--src/platform/tests/test-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/tests/test-common.c b/src/platform/tests/test-common.c
index 5194580dca..1980282dc8 100644
--- a/src/platform/tests/test-common.c
+++ b/src/platform/tests/test-common.c
@@ -263,10 +263,10 @@ main (int argc, char **argv)
nmtst_reexec_sudo ();
#ifdef REQUIRE_ROOT_TESTS
- g_message ("Fail test: requires root privileges (%s)", program);
+ g_print ("Fail test: requires root privileges (%s)\n", program);
return EXIT_FAILURE;
#else
- g_message ("Skipping test: requires root privileges (%s)", program);
+ g_print ("Skipping test: requires root privileges (%s)\n", program);
return 77;
#endif
}