diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-01-28 21:40:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-28 22:53:59 +0100 |
commit | bcb1eadc0cf8053d219c0b2cab1c46235506981d (patch) | |
tree | f53db60d6e3bde9b481111175eca52dc2ff5ffca | |
parent | test: make sure chase_symlink() returns normalized paths (diff) | |
download | systemd-bcb1eadc0cf8053d219c0b2cab1c46235506981d.tar.xz systemd-bcb1eadc0cf8053d219c0b2cab1c46235506981d.zip |
test: fix rename_noreplace() test
This corrects the fix b81b9d406de, making the test operate like it was
originally.
-rw-r--r-- | src/test/test-fs-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 1a5fd56658f..d0c6fb82bfd 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -739,7 +739,7 @@ static void test_rename_noreplace(void) { STRV_FOREACH(b, (char**) table) { _cleanup_free_ char *w = NULL; - w = strjoin(w, *b); + w = strjoin(z, *b); assert_se(w); if (access(w, F_OK) < 0) { @@ -747,7 +747,7 @@ static void test_rename_noreplace(void) { continue; } - assert_se(rename_noreplace(AT_FDCWD, w, AT_FDCWD, y) == -EEXIST); + assert_se(rename_noreplace(AT_FDCWD, x, AT_FDCWD, w) == -EEXIST); } y = strjoin(z, "/somethingelse"); |