Commit 243fbe8d authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 4

Suppress an abort in FileUtilTest under MSVC

Summary: Because MSVC is right, this shouldn't be happening, but we test weird things.

Reviewed By: yfeldblum

Differential Revision: D3773486

fbshipit-source-id: 50f28bf0ac8ff53f63231b4f6f9ce050b509b464
parent ff5c9335
......@@ -335,7 +335,9 @@ TEST_F(ReadFileFd, InvalidFd) {
File f(aFile.path().string());
f.close();
std::string contents;
EXPECT_FALSE(readFile(f.fd(), contents));
msvcSuppressAbortOnInvalidParams([&] {
EXPECT_FALSE(readFile(f.fd(), contents));
});
PLOG(INFO);
}
}} // namespaces
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