dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
b7dd4d
From 48b22b82853c6697669b078de5eae35728fbba30 Mon Sep 17 00:00:00 2001
b7dd4d
From: Yu Watanabe <watanabe.yu+github@gmail.com>
b7dd4d
Date: Tue, 11 Sep 2018 13:41:09 +0900
b7dd4d
Subject: [PATCH] test: replace swear words by 'hoge'
b7dd4d
b7dd4d
(cherry picked from commit a2917d3d2a3ce926f74b63aa60a47f838a8e1f83)
b7dd4d
b7dd4d
Related: #2049788
b7dd4d
---
b7dd4d
 src/test/test-cgroup-util.c |  2 +-
b7dd4d
 src/test/test-strv.c        | 10 +++++-----
b7dd4d
 2 files changed, 6 insertions(+), 6 deletions(-)
b7dd4d
b7dd4d
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c
b7dd4d
index 60d7bb19cb..2cb93ad0be 100644
b7dd4d
--- a/src/test/test-cgroup-util.c
b7dd4d
+++ b/src/test/test-cgroup-util.c
b7dd4d
@@ -296,7 +296,7 @@ static void test_shift_path(void) {
b7dd4d
         test_shift_path_one("/foobar/waldo", "/", "/foobar/waldo");
b7dd4d
         test_shift_path_one("/foobar/waldo", "", "/foobar/waldo");
b7dd4d
         test_shift_path_one("/foobar/waldo", "/foobar", "/waldo");
b7dd4d
-        test_shift_path_one("/foobar/waldo", "/fuckfuck", "/foobar/waldo");
b7dd4d
+        test_shift_path_one("/foobar/waldo", "/hogehoge", "/foobar/waldo");
b7dd4d
 }
b7dd4d
 
b7dd4d
 static void test_mask_supported(void) {
b7dd4d
diff --git a/src/test/test-strv.c b/src/test/test-strv.c
b7dd4d
index 9e7d98500f..165a5de91d 100644
b7dd4d
--- a/src/test/test-strv.c
b7dd4d
+++ b/src/test/test-strv.c
b7dd4d
@@ -279,18 +279,18 @@ static void test_strv_split_nulstr(void) {
b7dd4d
 
b7dd4d
 static void test_strv_parse_nulstr(void) {
b7dd4d
         _cleanup_strv_free_ char **l = NULL;
b7dd4d
-        const char nulstr[] = "fuck\0fuck2\0fuck3\0\0fuck5\0\0xxx";
b7dd4d
+        const char nulstr[] = "hoge\0hoge2\0hoge3\0\0hoge5\0\0xxx";
b7dd4d
 
b7dd4d
         l = strv_parse_nulstr(nulstr, sizeof(nulstr)-1);
b7dd4d
         assert_se(l);
b7dd4d
         puts("Parse nulstr:");
b7dd4d
         strv_print(l);
b7dd4d
 
b7dd4d
-        assert_se(streq(l[0], "fuck"));
b7dd4d
-        assert_se(streq(l[1], "fuck2"));
b7dd4d
-        assert_se(streq(l[2], "fuck3"));
b7dd4d
+        assert_se(streq(l[0], "hoge"));
b7dd4d
+        assert_se(streq(l[1], "hoge2"));
b7dd4d
+        assert_se(streq(l[2], "hoge3"));
b7dd4d
         assert_se(streq(l[3], ""));
b7dd4d
-        assert_se(streq(l[4], "fuck5"));
b7dd4d
+        assert_se(streq(l[4], "hoge5"));
b7dd4d
         assert_se(streq(l[5], ""));
b7dd4d
         assert_se(streq(l[6], "xxx"));
b7dd4d
 }