Index: chrome_elf/elf_imports_unittest.cc |
diff --git a/chrome_elf/elf_imports_unittest.cc b/chrome_elf/elf_imports_unittest.cc |
index 8c3527a13858f5c2e476b3efbfb3655e400ea7d9..3aa03ad06fea0f26fd829c6830a3cda12cf19591 100644 |
--- a/chrome_elf/elf_imports_unittest.cc |
+++ b/chrome_elf/elf_imports_unittest.cc |
@@ -62,7 +62,7 @@ class ELFImportsTest : public testing::Test { |
// |
// If you break this test, you may have changed base or the Windows sandbox |
// such that more system imports are required to link. |
-#ifdef NDEBUG |
+#if defined(NDEBUG) && !defined(COMPONENT_BUILD) |
TEST_F(ELFImportsTest, ChromeElfSanityCheck) { |
base::FilePath dll; |
ASSERT_TRUE(PathService::Get(base::DIR_EXE, &dll)); |