test/fs: sanity check for literal "~" directory (#6579)

If the CWD contains a directory with the literal name "~" then the tests
will have bogus failures.
This commit is contained in:
Justin M. Keyes
2017-04-24 22:45:03 +02:00
committed by GitHub
parent 8dc3eca49b
commit 8f346a322b
3 changed files with 73 additions and 64 deletions

View File

@@ -61,9 +61,9 @@ void fs_init(void)
}
/// Change to the given directory.
/// Changes the current directory to `path`.
///
/// @return `0` on success, a libuv error code on failure.
/// @return 0 on success, or negative error code.
int os_chdir(const char *path)
FUNC_ATTR_NONNULL_ALL
{