Searched refs:failure (Results 1 - 6 of 6) sorted by relevance

/gem5/ext/googletest/googletest/test/
H A Dgtest_environment_test.cc58 // generate a non-fatal failure, generate a fatal failure, or
65 ADD_FAILURE() << "Expected non-fatal failure in global set-up.";
68 FAIL() << "Expected fatal failure in global set-up.";
75 // Generates a non-fatal failure.
78 ADD_FAILURE() << "Expected non-fatal failure in global tear-down.";
88 // We call this function to set the type of failure SetUp() should
125 // The 'failure' parameter specifies the type of failure that should
127 int RunAllTests(MyEnvironment* env, FailureType failure) { argument
[all...]
H A Dgtest_output_test_.cc69 // This function calls a test subroutine, catches the fatal failure it
72 // Calls a subrountine that yields a fatal failure.
75 // Catches the fatal failure and aborts the test.
120 // Tests catching a fatal failure in a subroutine.
122 printf("(expecting a failure that x should be 1)\n");
127 // Tests catching a fatal failure in a nested subroutine.
129 printf("(expecting a failure that x should be 1)\n");
131 // Calls a subrountine that yields a fatal failure.
134 // Catches the fatal failure and aborts the test.
146 printf("(expecting a failure o
883 AddFailure(FailureMode failure) argument
923 AddFailureInOtherThread(FailureMode failure) argument
[all...]
H A Dgtest_unittest.cc150 // Meta characters in the failure message should be properly escaped.
1085 FAIL() << "Expected fatal failure.";
1089 ADD_FAILURE() << "Expected non-fatal failure.";
1098 static void AddFailure(FailureMode failure) { argument
1099 if (failure == FATAL_FAILURE) {
1139 static void AddFailureInOtherThread(FailureMode failure) { argument
1140 ThreadWithParam<FailureMode> thread(&AddFailure, failure, NULL);
1167 // work even if the failure is generated in a called function rather than
1173 EXPECT_FATAL_FAILURE(AddFatalFailure(), "Expected fatal failure.");
1178 EXPECT_FATAL_FAILURE(AddFatalFailure(), ::string("Expected fatal failure
[all...]
/gem5/tests/testing/
H A Dunits.py96 def failure(self, message, **kwargs): member in class:TestUnit
129 Possible failure modes:
134 Possible non-failure results:
291 return self.failure("Statistics mismatch",
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h87 class Message; // Represents a failure message.
103 // The text used in failure messages to indicate the start of the
150 explicit GoogleTestFailureException(const TestPartResult& failure);
205 // (e.g. ASSERT_EQ, EXPECT_STREQ, etc) failure.
225 // Constructs a failure message for Boolean assertions such as EXPECT_TRUE.
/gem5/ext/googletest/googletest/src/
H A Dgtest.cc182 // The text used in failure messages to indicate the start of the
271 "printing test failure stack traces.");
629 // failure of the given type and that the failure message contains the
638 "1 fatal failure" :
639 "1 non-fatal failure");
668 // test part results, what type of failure we expect, and what
669 // substring the failure message should contain.
679 // TestPartResultArray contains exactly one failure that has the given
681 // non-fatal failure wil
2368 GoogleTestFailureException( const TestPartResult& failure) argument
[all...]

Completed in 42 milliseconds