Blob Blame History Raw
From 98628af16f2ec4f7fbaa9bc23ae8606fc9adcc1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Tue, 1 Dec 2015 23:44:27 -0500
Subject: [PATCH 3/4] tests: fix newlines in skip message

(cherry picked from commit 1d31abf7920460f3c9bb9744a255e0e518dce00d)

Resolves: #1286249
---
 src/test/test-engine.c     | 2 +-
 src/test/test-execute.c    | 2 +-
 src/test/test-path.c       | 2 +-
 src/test/test-sched-prio.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/test-engine.c b/src/test/test-engine.c
index f09df43..e3ded1b 100644
--- a/src/test/test-engine.c
+++ b/src/test/test-engine.c
@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
         assert_se(set_unit_path(TEST_DIR) >= 0);
         r = manager_new(MANAGER_USER, true, &m);
         if (MANAGER_SKIP_TEST(r)) {
-                printf("Skipping test: manager_new: %s", strerror(-r));
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
                 return EXIT_TEST_SKIP;
         }
         assert_se(r >= 0);
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index 1ab10fb..753afad 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -298,7 +298,7 @@ int main(int argc, char *argv[]) {
 
         r = manager_new(MANAGER_USER, true, &m);
         if (MANAGER_SKIP_TEST(r)) {
-                printf("Skipping test: manager_new: %s", strerror(-r));
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
                 return EXIT_TEST_SKIP;
         }
         assert_se(r >= 0);
diff --git a/src/test/test-path.c b/src/test/test-path.c
index 6e6a72d..7a3b145 100644
--- a/src/test/test-path.c
+++ b/src/test/test-path.c
@@ -46,7 +46,7 @@ static int setup_test(Manager **m) {
 
         r = manager_new(MANAGER_USER, true, &tmp);
         if (MANAGER_SKIP_TEST(r)) {
-                printf("Skipping test: manager_new: %s", strerror(-r));
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
                 return -EXIT_TEST_SKIP;
         }
         assert_se(r >= 0);
diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c
index 7958a6c..60b5160 100644
--- a/src/test/test-sched-prio.c
+++ b/src/test/test-sched-prio.c
@@ -37,7 +37,7 @@ int main(int argc, char *argv[]) {
         assert_se(set_unit_path(TEST_DIR) >= 0);
         r = manager_new(MANAGER_USER, true, &m);
         if (MANAGER_SKIP_TEST(r)) {
-                printf("Skipping test: manager_new: %s", strerror(-r));
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
                 return EXIT_TEST_SKIP;
         }
         assert_se(r >= 0);
-- 
2.5.0