ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
Jan Synacek 2ec3b0
From 98628af16f2ec4f7fbaa9bc23ae8606fc9adcc1c Mon Sep 17 00:00:00 2001
Jan Synacek 2ec3b0
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Jan Synacek 2ec3b0
Date: Tue, 1 Dec 2015 23:44:27 -0500
Jan Synacek 2ec3b0
Subject: [PATCH 3/4] tests: fix newlines in skip message
Jan Synacek 2ec3b0
Jan Synacek 2ec3b0
(cherry picked from commit 1d31abf7920460f3c9bb9744a255e0e518dce00d)
Jan Synacek 2ec3b0
Jan Synacek 2ec3b0
Resolves: #1286249
Jan Synacek 2ec3b0
---
Jan Synacek 2ec3b0
 src/test/test-engine.c     | 2 +-
Jan Synacek 2ec3b0
 src/test/test-execute.c    | 2 +-
Jan Synacek 2ec3b0
 src/test/test-path.c       | 2 +-
Jan Synacek 2ec3b0
 src/test/test-sched-prio.c | 2 +-
Jan Synacek 2ec3b0
 4 files changed, 4 insertions(+), 4 deletions(-)
Jan Synacek 2ec3b0
Jan Synacek 2ec3b0
diff --git a/src/test/test-engine.c b/src/test/test-engine.c
Jan Synacek 2ec3b0
index f09df43..e3ded1b 100644
Jan Synacek 2ec3b0
--- a/src/test/test-engine.c
Jan Synacek 2ec3b0
+++ b/src/test/test-engine.c
Jan Synacek 2ec3b0
@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
Jan Synacek 2ec3b0
         assert_se(set_unit_path(TEST_DIR) >= 0);
Jan Synacek 2ec3b0
         r = manager_new(MANAGER_USER, true, &m);
Jan Synacek 2ec3b0
         if (MANAGER_SKIP_TEST(r)) {
Jan Synacek 2ec3b0
-                printf("Skipping test: manager_new: %s", strerror(-r));
Jan Synacek 2ec3b0
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
Jan Synacek 2ec3b0
                 return EXIT_TEST_SKIP;
Jan Synacek 2ec3b0
         }
Jan Synacek 2ec3b0
         assert_se(r >= 0);
Jan Synacek 2ec3b0
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
Jan Synacek 2ec3b0
index 1ab10fb..753afad 100644
Jan Synacek 2ec3b0
--- a/src/test/test-execute.c
Jan Synacek 2ec3b0
+++ b/src/test/test-execute.c
Jan Synacek 2ec3b0
@@ -298,7 +298,7 @@ int main(int argc, char *argv[]) {
Jan Synacek 2ec3b0
 
Jan Synacek 2ec3b0
         r = manager_new(MANAGER_USER, true, &m);
Jan Synacek 2ec3b0
         if (MANAGER_SKIP_TEST(r)) {
Jan Synacek 2ec3b0
-                printf("Skipping test: manager_new: %s", strerror(-r));
Jan Synacek 2ec3b0
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
Jan Synacek 2ec3b0
                 return EXIT_TEST_SKIP;
Jan Synacek 2ec3b0
         }
Jan Synacek 2ec3b0
         assert_se(r >= 0);
Jan Synacek 2ec3b0
diff --git a/src/test/test-path.c b/src/test/test-path.c
Jan Synacek 2ec3b0
index 6e6a72d..7a3b145 100644
Jan Synacek 2ec3b0
--- a/src/test/test-path.c
Jan Synacek 2ec3b0
+++ b/src/test/test-path.c
Jan Synacek 2ec3b0
@@ -46,7 +46,7 @@ static int setup_test(Manager **m) {
Jan Synacek 2ec3b0
 
Jan Synacek 2ec3b0
         r = manager_new(MANAGER_USER, true, &tmp);
Jan Synacek 2ec3b0
         if (MANAGER_SKIP_TEST(r)) {
Jan Synacek 2ec3b0
-                printf("Skipping test: manager_new: %s", strerror(-r));
Jan Synacek 2ec3b0
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
Jan Synacek 2ec3b0
                 return -EXIT_TEST_SKIP;
Jan Synacek 2ec3b0
         }
Jan Synacek 2ec3b0
         assert_se(r >= 0);
Jan Synacek 2ec3b0
diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c
Jan Synacek 2ec3b0
index 7958a6c..60b5160 100644
Jan Synacek 2ec3b0
--- a/src/test/test-sched-prio.c
Jan Synacek 2ec3b0
+++ b/src/test/test-sched-prio.c
Jan Synacek 2ec3b0
@@ -37,7 +37,7 @@ int main(int argc, char *argv[]) {
Jan Synacek 2ec3b0
         assert_se(set_unit_path(TEST_DIR) >= 0);
Jan Synacek 2ec3b0
         r = manager_new(MANAGER_USER, true, &m);
Jan Synacek 2ec3b0
         if (MANAGER_SKIP_TEST(r)) {
Jan Synacek 2ec3b0
-                printf("Skipping test: manager_new: %s", strerror(-r));
Jan Synacek 2ec3b0
+                printf("Skipping test: manager_new: %s\n", strerror(-r));
Jan Synacek 2ec3b0
                 return EXIT_TEST_SKIP;
Jan Synacek 2ec3b0
         }
Jan Synacek 2ec3b0
         assert_se(r >= 0);
Jan Synacek 2ec3b0
-- 
Jan Synacek 2ec3b0
2.5.0
Jan Synacek 2ec3b0