diff options
-rw-r--r-- | lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp index 923f61b546d..277627e1e6c 100644 --- a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp +++ b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp @@ -738,7 +738,6 @@ TEST(BinaryReaderTest, hello_obj_ppc) { auto ec = writeBinary(*f, "/tmp/foo.o"); // FIXME: We want to do EXPECT_FALSE(ec) but that fails on some Windows bots, // probably due to /tmp not being available. - // For now just check if an error happens as we need to mark it as checked. - bool failed = (bool)ec; - (void)failed; + // For now just consume the error without checking it. + consumeError(std::move(ec)); } |