Skip to content

Commit 83af335

Browse files
[llvm][lit] Update regexes in Xunit test (#126527)
I got a report that downstream this test failed and the cause was that it took longer than the 1 second we expected to run one of the test cases. This test doesn't need to be that specific, so I am updating all the time regexes to be the same one that allows 0-9 any number of digits, requires a decimal point, then 0-9 any number of digits for the final part.
1 parent 0010a3c commit 83af335

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/utils/lit/tests/xunit-output.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
# RUN: FileCheck < %t.xunit.xml %s
99

1010
# CHECK: <?xml version="1.0" encoding="UTF-8"?>
11-
# CHECK-NEXT: <testsuites time="{{[0-9.]+}}">
12-
# CHECK-NEXT: <testsuite name="test-data" tests="5" failures="1" skipped="3" time="{{[0-9.]+}}">
13-
# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&amp;name.ini" time="{{[0-1]\.[0-9]+}}">
11+
# CHECK-NEXT: <testsuites time="{{[0-9]+\.[0-9]+}}">
12+
# CHECK-NEXT: <testsuite name="test-data" tests="5" failures="1" skipped="3" time="{{[0-9]+\.[0-9]+}}">
13+
# CHECK-NEXT: <testcase classname="test-data.test-data" name="bad&amp;name.ini" time="{{[0-9]+\.[0-9]+}}">
1414
# CHECK-NEXT: <failure><![CDATA[& < > ]]]]><![CDATA[> &"]]></failure>
1515
# CHECK-NEXT: </testcase>
16-
# CHECK-NEXT: <testcase classname="test-data.test-data" name="excluded.ini" time="{{[0-1]\.[0-9]+}}">
16+
# CHECK-NEXT: <testcase classname="test-data.test-data" name="excluded.ini" time="{{[0-9]+\.[0-9]+}}">
1717
# CHECK-NEXT: <skipped message="Test not selected (--filter, --max-tests)"/>
1818
# CHECK-NEXT: </testcase>
19-
# CHECK-NEXT: <testcase classname="test-data.test-data" name="missing_feature.ini" time="{{[0-1]\.[0-9]+}}">
19+
# CHECK-NEXT: <testcase classname="test-data.test-data" name="missing_feature.ini" time="{{[0-9]+\.[0-9]+}}">
2020
# CHECK-NEXT: <skipped message="Missing required feature(s): dummy_feature"/>
2121
# CHECK-NEXT: </testcase>
22-
# CHECK-NEXT: <testcase classname="test-data.test-data" name="pass.ini" time="{{[0-1]\.[0-9]+}}"/>
23-
# CHECK-NEXT: <testcase classname="test-data.test-data" name="unsupported.ini" time="{{[0-1]\.[0-9]+}}">
22+
# CHECK-NEXT: <testcase classname="test-data.test-data" name="pass.ini" time="{{[0-9]+\.[0-9]+}}"/>
23+
# CHECK-NEXT: <testcase classname="test-data.test-data" name="unsupported.ini" time="{{[0-9]+\.[0-9]+}}">
2424
# CHECK-NEXT: <skipped message="Unsupported configuration"/>
2525
# CHECK-NEXT: </testcase>
2626
# CHECK-NEXT: </testsuite>

0 commit comments

Comments
 (0)