From 586bd2098d9f0e40b9ec95ed688d9382f23e495b Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Mon, 23 Jul 2018 18:08:36 +0000 Subject: [PATCH] [lit] Move the shtest-xunit-output check lines into shtest-format These two tests are operating on the same test suite, which causes them to be racy about writing temporary files and can cause spurious failures. Merge them into one test to avoid the issue. llvm-svn: 337718 --- utils/lit/tests/shtest-format.py | 88 +++++++++++++++++++++++++- utils/lit/tests/shtest-xunit-output.py | 84 ------------------------ 2 files changed, 86 insertions(+), 86 deletions(-) delete mode 100644 utils/lit/tests/shtest-xunit-output.py diff --git a/utils/lit/tests/shtest-format.py b/utils/lit/tests/shtest-format.py index 33ed2fe44d6..8c318697195 100644 --- a/utils/lit/tests/shtest-format.py +++ b/utils/lit/tests/shtest-format.py @@ -1,8 +1,10 @@ # Check the various features of the ShTest format. # -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format > %t.out +# RUN: rm -f %t.xml +# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml > %t.out # RUN: FileCheck < %t.out %s -# +# RUN: FileCheck --check-prefix=XUNIT < %t.xml %s + # END. # CHECK: -- Testing: @@ -84,3 +86,85 @@ # CHECK: Unresolved Tests : 3 # CHECK: Unexpected Passes : 1 # CHECK: Unexpected Failures: 3 + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: + +# XUNIT: +# XUNIT-NEXT: +# XUNIT: +# XUNIT-NEXT: + +# XUNIT: +# XUNIT-NEXT: diff --git a/utils/lit/tests/shtest-xunit-output.py b/utils/lit/tests/shtest-xunit-output.py deleted file mode 100644 index c724cfa128d..00000000000 --- a/utils/lit/tests/shtest-xunit-output.py +++ /dev/null @@ -1,84 +0,0 @@ -# RUN: rm -f %t.xml -# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml -# RUN: FileCheck < %t.xml %s - -# CHECK: -# CHECK-NEXT: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: - -# CHECK: -# CHECK-NEXT: -# CHECK: -# CHECK-NEXT: - -# CHECK: -# CHECK-NEXT: