Add a make command for checking expected failures

This commit is contained in:
Jack Grigg 2016-09-23 12:32:59 +12:00
parent 976479f824
commit e9006272c2
2 changed files with 8 additions and 0 deletions

View File

@ -36,3 +36,6 @@ zcash_gtest_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
zcash-gtest_check: zcash-gtest FORCE
./zcash-gtest
zcash-gtest-expected-failures: zcash-gtest FORCE
./zcash-gtest --gtest_filter=*DISABLED_* --gtest_also_run_disabled_tests

View File

@ -3,3 +3,8 @@
TEST(tautologies, seven_eq_seven) {
ASSERT_EQ(7, 7);
}
TEST(tautologies, DISABLED_ObviousFailure)
{
FAIL() << "This is expected";
}