commit | 050f3d7e8addc0e738a45154ab59639c2f6202ad | [log] [tgz] |
---|---|---|
author | Boleyn Su <boleynsu@google.com> | Thu Jul 02 19:12:32 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jul 02 19:12:32 2020 +0000 |
tree | 71fbdc15562cd2734622bd381df90b6454a7438f | |
parent | 2cc0dbe7767ff284edeaedd8c9e6718975599a62 [diff] | |
parent | 9285b496bd4ec2c50694042609576b72c8a16a0b [diff] |
ReadFileSymbolicLink checks /system/bin/ps am: 9285b496bd Original change: https://googleplex-android-review.googlesource.com/c/platform/system/core/+/12066063 Change-Id: I859102b257204ec9f426c1466ec63b289acdb559
diff --git a/init/util_test.cpp b/init/util_test.cpp index 96a5b55..08343dc 100644 --- a/init/util_test.cpp +++ b/init/util_test.cpp
@@ -61,8 +61,9 @@ 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",