diff options
-rw-r--r-- | test/test_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_syscalls.c b/test/test_syscalls.c index 4fa5c87..cd799ce 100644 --- a/test/test_syscalls.c +++ b/test/test_syscalls.c @@ -1624,7 +1624,7 @@ static int test_rename_dir_loop(void) errno = 0; res = rename(PATH("a/b"), PATH2("a/d")); - if (res == 0 || errno != ENOTEMPTY) { + if (res == 0 || (errno != ENOTEMPTY && errno != EEXIST)) { PERROR("rename"); goto fail; } |