summaryrefslogtreecommitdiffstats
path: root/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp')
-rw-r--r--lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
index 1a081d04658..d29e0baf27a 100644
--- a/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
+++ b/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
@@ -735,5 +735,6 @@ TEST(BinaryReaderTest, hello_obj_ppc) {
EXPECT_EQ(printfLabel.type, N_UNDF);
EXPECT_EQ(printfLabel.scope, SymbolScope(N_EXT));
- writeBinary(*f, "/tmp/foo.o");
+ auto ec = writeBinary(*f, "/tmp/foo.o");
+ EXPECT_FALSE(ec);
}
OpenPOWER on IntegriCloud