projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c7b4eb
)
test: fix rename_noreplace() test
author
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Jan 2020 20:40:03 +0000
(21:40 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Jan 2020 21:53:59 +0000
(22:53 +0100)
This corrects the fix
b81b9d406de
, making the test operate like it was
originally.
src/test/test-fs-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-fs-util.c
b/src/test/test-fs-util.c
index 1a5fd56658f05c83f560632ffcd453e5faa913a6..d0c6fb82bfda2748ffb0ebfb499845d3e933452f 100644
(file)
--- 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");