Commit c6fda5da authored by jln's avatar jln Committed by Commit bot

Linux sandbox: disable a few tests on ASAN

Disable DropFileSystemAccessIsSafe and CannotRegainPrivileges on ASAN.

BUG=451603

Review URL: https://codereview.chromium.org/881923002

Cr-Commit-Position: refs/heads/master@{#313368}
parent 0c700e62
......@@ -130,7 +130,8 @@ TEST(Credentials, CanDetectRoot) {
ASSERT_TRUE(WorkingDirectoryIsRoot());
}
SANDBOX_TEST(Credentials, DISABLE_ON_LSAN(DropFileSystemAccessIsSafe)) {
// Disabled on ASAN because of crbug.com/451603.
SANDBOX_TEST(Credentials, DISABLE_ON_ASAN(DropFileSystemAccessIsSafe)) {
CHECK(Credentials::DropAllCapabilities());
// Probably missing kernel support.
if (!Credentials::MoveToNewUserNS()) return;
......@@ -145,7 +146,7 @@ SANDBOX_TEST(Credentials, DISABLE_ON_LSAN(DropFileSystemAccessIsSafe)) {
// Check that after dropping filesystem access and dropping privileges
// it is not possible to regain capabilities.
SANDBOX_TEST(Credentials, DISABLE_ON_LSAN(CannotRegainPrivileges)) {
SANDBOX_TEST(Credentials, DISABLE_ON_ASAN(CannotRegainPrivileges)) {
CHECK(Credentials::DropAllCapabilities());
// Probably missing kernel support.
if (!Credentials::MoveToNewUserNS()) return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment