Skip to content

Commit 0247183

Browse files
authored
[Flang] Fix a test case that depends on stderr output of nullptr. (#73349)
This test case depends on the stderr output of a `nullptr` being "(null)". However, it is empty string on AIX. This PR is to initialize the `sourceFileName_` to be a specific string to avoid that.
1 parent 5ac5c0e commit 0247183

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)