Only use death tests if available

This commit is contained in:
vitaut
2015-06-22 08:17:23 -07:00
parent 8450f5e1d3
commit 8ab665afbc
8 changed files with 98 additions and 8 deletions

View File

@@ -525,7 +525,7 @@ TEST(BufferedFileTest, CloseError) {
TEST(BufferedFileTest, Fileno) {
BufferedFile f;
// fileno on a null FILE pointer either crashes or returns an error.
EXPECT_DEATH({
EXPECT_DEATH_IF_SUPPORTED({
try {
f.fileno();
} catch (fmt::SystemError) {