summaryrefslogtreecommitdiffstats
path: root/src/test/test-tmpfile-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-08 10:43:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-28 06:44:38 +0200
commit4ff361cc8611459388d7f75955bfe645f894f065 (patch)
treef0fe232aee56d0517cdd0e8b86f1d497afe65f85 /src/test/test-tmpfile-util.c
parentpath-util: make path_extract_filename/directory() handle "." gracefully (diff)
downloadsystemd-4ff361cc8611459388d7f75955bfe645f894f065.tar.xz
systemd-4ff361cc8611459388d7f75955bfe645f894f065.zip
tree-wide: always drop unnecessary dot in path
Diffstat (limited to 'src/test/test-tmpfile-util.c')
-rw-r--r--src/test/test-tmpfile-util.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/test-tmpfile-util.c b/src/test/test-tmpfile-util.c
index af18df1bd5..9f2e615867 100644
--- a/src/test/test-tmpfile-util.c
+++ b/src/test/test-tmpfile-util.c
@@ -37,8 +37,8 @@ static void test_tempfn_random(void) {
test_tempfn_random_one("foo", "bar", ".#barfoo", 0);
test_tempfn_random_one("/tmp/foo", NULL, "/tmp/.#foo", 0);
test_tempfn_random_one("/tmp/foo", "bar", "/tmp/.#barfoo", 0);
- test_tempfn_random_one("./foo", NULL, "./.#foo", 0);
- test_tempfn_random_one("./foo", "bar", "./.#barfoo", 0);
+ test_tempfn_random_one("./foo", NULL, ".#foo", 0);
+ test_tempfn_random_one("./foo", "bar", ".#barfoo", 0);
test_tempfn_random_one("../foo", NULL, "../.#foo", 0);
test_tempfn_random_one("../foo", "bar", "../.#barfoo", 0);
@@ -46,8 +46,8 @@ static void test_tempfn_random(void) {
test_tempfn_random_one("foo/", "bar", ".#barfoo", 0);
test_tempfn_random_one("/tmp/foo/", NULL, "/tmp/.#foo", 0);
test_tempfn_random_one("/tmp/foo/", "bar", "/tmp/.#barfoo", 0);
- test_tempfn_random_one("./foo/", NULL, "./.#foo", 0);
- test_tempfn_random_one("./foo/", "bar", "./.#barfoo", 0);
+ test_tempfn_random_one("./foo/", NULL, ".#foo", 0);
+ test_tempfn_random_one("./foo/", "bar", ".#barfoo", 0);
test_tempfn_random_one("../foo/", NULL, "../.#foo", 0);
test_tempfn_random_one("../foo/", "bar", "../.#barfoo", 0);
}
@@ -81,8 +81,8 @@ static void test_tempfn_xxxxxx(void) {
test_tempfn_xxxxxx_one("foo", "bar", ".#barfoo", 0);
test_tempfn_xxxxxx_one("/tmp/foo", NULL, "/tmp/.#foo", 0);
test_tempfn_xxxxxx_one("/tmp/foo", "bar", "/tmp/.#barfoo", 0);
- test_tempfn_xxxxxx_one("./foo", NULL, "./.#foo", 0);
- test_tempfn_xxxxxx_one("./foo", "bar", "./.#barfoo", 0);
+ test_tempfn_xxxxxx_one("./foo", NULL, ".#foo", 0);
+ test_tempfn_xxxxxx_one("./foo", "bar", ".#barfoo", 0);
test_tempfn_xxxxxx_one("../foo", NULL, "../.#foo", 0);
test_tempfn_xxxxxx_one("../foo", "bar", "../.#barfoo", 0);
@@ -90,8 +90,8 @@ static void test_tempfn_xxxxxx(void) {
test_tempfn_xxxxxx_one("foo/", "bar", ".#barfoo", 0);
test_tempfn_xxxxxx_one("/tmp/foo/", NULL, "/tmp/.#foo", 0);
test_tempfn_xxxxxx_one("/tmp/foo/", "bar", "/tmp/.#barfoo", 0);
- test_tempfn_xxxxxx_one("./foo/", NULL, "./.#foo", 0);
- test_tempfn_xxxxxx_one("./foo/", "bar", "./.#barfoo", 0);
+ test_tempfn_xxxxxx_one("./foo/", NULL, ".#foo", 0);
+ test_tempfn_xxxxxx_one("./foo/", "bar", ".#barfoo", 0);
test_tempfn_xxxxxx_one("../foo/", NULL, "../.#foo", 0);
test_tempfn_xxxxxx_one("../foo/", "bar", "../.#barfoo", 0);
}