ReadFileSymbolicLink checks /system/bin/ps am: 9285b496bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/12066063 Change-Id: I8937703c1bade83ca382acdc6f9dc09fff8c4100
This commit is contained in:
commit
7f5d723ead
1 changed files with 3 additions and 2 deletions
|
|
@ -61,8 +61,9 @@ TEST(util, ReadFileWorldWiteable) {
|
|||
|
||||
TEST(util, ReadFileSymbolicLink) {
|
||||
errno = 0;
|
||||
// lrw------- 1 root root 23 2008-12-31 19:00 default.prop -> system/etc/prop.default
|
||||
auto file_contents = ReadFile("/default.prop");
|
||||
// lrwxrwxrwx 1 root shell 6 2020-06-26 09:55 /system/bin/ps -> toybox
|
||||
auto file_contents = ReadFile("/system/bin/ps");
|
||||
|
||||
EXPECT_EQ(ELOOP, errno);
|
||||
ASSERT_FALSE(file_contents.ok());
|
||||
EXPECT_EQ("open() failed: Too many symbolic links encountered",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue