Update our FreeBSD realpath(3) to upstream head.
Change-Id: I8c89728184ecd2c1a28a05cefa84a5037d28b552
This commit is contained in:
@@ -99,6 +99,18 @@ TEST(stdlib, realpath__ENOENT) {
|
||||
ASSERT_EQ(ENOENT, errno);
|
||||
}
|
||||
|
||||
TEST(stdlib, realpath__component_after_non_directory) {
|
||||
errno = 0;
|
||||
char* p = realpath("/dev/null/.", NULL);
|
||||
ASSERT_TRUE(p == NULL);
|
||||
ASSERT_EQ(ENOTDIR, errno);
|
||||
|
||||
errno = 0;
|
||||
p = realpath("/dev/null/..", NULL);
|
||||
ASSERT_TRUE(p == NULL);
|
||||
ASSERT_EQ(ENOTDIR, errno);
|
||||
}
|
||||
|
||||
TEST(stdlib, realpath) {
|
||||
// Get the name of this executable.
|
||||
char executable_path[PATH_MAX];
|
||||
|
Reference in New Issue
Block a user