diff options
Diffstat (limited to 'test/test_directory.cpp')
-rw-r--r-- | test/test_directory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_directory.cpp b/test/test_directory.cpp index c2af281..2f69dab 100644 --- a/test/test_directory.cpp +++ b/test/test_directory.cpp @@ -49,16 +49,16 @@ FudStatus removeRecursive(const String& path) return FudStatus::Utf8Invalid; } if (path.length() < 5) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } auto prefix{String::makeFromCString("/tmp/").takeOkay()}; auto diffResult = compareMem(path.data(), path.length(), prefix.data(), prefix.length()); if (diffResult.isError()) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } auto diff = diffResult.getOkay(); if (diff != 0) { - return FudStatus::InvalidInput; + return FudStatus::ArgumentInvalid; } constexpr int maxOpenFd = 64; auto status = nftw(path.c_str(), unlink_cb, maxOpenFd, FTW_DEPTH | FTW_PHYS); |