Skip to content

Commit cb9bace

Browse files
committed
[Flang] Fix a test case that depends on stderr output of nullptr.
1 parent b86420c commit cb9bace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/unittests/Runtime/RuntimeCrashTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ TEST(TestTerminator, CheckFailedLocationTest) {
4343
}
4444

4545
TEST(TestTerminator, CheckFailedTest) {
46-
static Fortran::runtime::Terminator t;
46+
static Fortran::runtime::Terminator t("someFileName");
4747
ASSERT_DEATH(t.CheckFailed("predicate"),
48-
"RUNTIME_CHECK\\(predicate\\) failed at \\(null\\)\\(0\\)");
48+
"RUNTIME_CHECK\\(predicate\\) failed at someFileName\\(0\\)");
4949
}
5050

5151
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)