diff --git a/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py b/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py index 50d54567826b..7bff6b6252b2 100644 --- a/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py +++ b/llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py @@ -11,6 +11,7 @@ FirstTest. subTestA subTestB subTestC + subTestD ParameterizedTest/0. subTest ParameterizedTest/1. @@ -34,6 +35,9 @@ elif test_name == 'FirstTest.subTestC': print('[ SKIPPED ] 1 test, listed below:') print('[ SKIPPED ] FirstTest.subTestC') sys.exit(0) +elif test_name == 'FirstTest.subTestD': + print('I am subTest D, I am UNRESOLVED') + sys.exit(0) elif test_name in ('ParameterizedTest/0.subTest', 'ParameterizedTest/1.subTest'): print('I am a parameterized test, I also PASS') diff --git a/llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py b/llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py index 10237c78a576..1061e39ec207 100644 --- a/llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py +++ b/llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py @@ -12,6 +12,7 @@ FirstTest. subTestA subTestB subTestC + subTestD ParameterizedTest/0. subTest ParameterizedTest/1. @@ -36,6 +37,9 @@ elif test_name == 'FirstTest.subTestC': print('[ SKIPPED ] 1 test, listed below:') print('[ SKIPPED ] FirstTest.subTestC') sys.exit(0) +elif test_name == 'FirstTest.subTestD': + print('I am subTest D, I am UNRESOLVED') + sys.exit(0) elif test_name in ('ParameterizedTest/0.subTest', 'ParameterizedTest/1.subTest'): print('I am a parameterized test, I also PASS') diff --git a/llvm/utils/lit/tests/googletest-format.py b/llvm/utils/lit/tests/googletest-format.py index 8b163c8fbd0d..41fb9e8c0da5 100644 --- a/llvm/utils/lit/tests/googletest-format.py +++ b/llvm/utils/lit/tests/googletest-format.py @@ -19,9 +19,11 @@ # CHECK-NEXT: And I have two lines of output # CHECK: *** # CHECK: SKIPPED: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC +# CHECK: UNRESOLVED: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestD # CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest # CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest # CHECK: Failed Tests (1) # CHECK: Skipped{{ *}}: 1 # CHECK: Passed{{ *}}: 3 +# CHECK: Unresolved{{ *}}: 1 # CHECK: Failed{{ *}}: 1 diff --git a/llvm/utils/lit/tests/googletest-upstream-format.py b/llvm/utils/lit/tests/googletest-upstream-format.py index 4029fac0963a..fd3501942dc0 100644 --- a/llvm/utils/lit/tests/googletest-upstream-format.py +++ b/llvm/utils/lit/tests/googletest-upstream-format.py @@ -17,9 +17,11 @@ # CHECK-NEXT: And I have two lines of output # CHECK: *** # CHECK: SKIPPED: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC +# CHECK: UNRESOLVED: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestD # CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest # CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest # CHECK: Failed Tests (1) # CHECK: Skipped{{ *}}: 1 # CHECK: Passed{{ *}}: 3 +# CHECK: Unresolved{{ *}}: 1 # CHECK: Failed{{ *}}: 1