Auto merge of #1433 - str4d:gtest-expected-failures, r=str4d

Add a make command for checking expected failures

With this merged, we can add gtests prefixed with `DISABLED_`, and then configure Buildbot to run those tests but not require they pass in order to merge.
This commit is contained in:
zkbot 2016-09-30 17:12:26 -04:00
commit d90ed0df93
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";
}