[llvm] r332985 - [lit] Don't check output of commands used in `shtest-timeout.py` test.

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 08:06:20 PDT 2018


Author: delcypher
Date: Tue May 22 08:06:20 2018
New Revision: 332985

URL: http://llvm.org/viewvc/llvm-project?rev=332985&view=rev
Log:
[lit] Don't check output of commands used in `shtest-timeout.py` test.

If the system is under heavy load 1 second might not be long enough
for it to produce output which could lead to spurious test failures.
What matters is that the right test cases reach a timeout.

rdar://problem/40221572

Modified:
    llvm/trunk/utils/lit/tests/shtest-timeout.py

Modified: llvm/trunk/utils/lit/tests/shtest-timeout.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/shtest-timeout.py?rev=332985&r1=332984&r2=332985&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/shtest-timeout.py (original)
+++ llvm/trunk/utils/lit/tests/shtest-timeout.py Tue May 22 08:06:20 2018
@@ -26,12 +26,10 @@
 
 # CHECK-INTSH-OUT: TIMEOUT: per_test_timeout :: infinite_loop.py
 # CHECK-INTSH-OUT: command output:
-# CHECK-INTSH-OUT-NEXT: Running infinite loop
 # CHECK-INTSH-OUT: command reached timeout: True
 
 # CHECK-INTSH-OUT: TIMEOUT: per_test_timeout :: slow.py
 # CHECK-INTSH-OUT: command output:
-# CHECK-INTSH-OUT-NEXT: Running slow program
 # CHECK-INTSH-OUT: command reached timeout: True
 
 # CHECK-INTSH-ERR: Using internal shell
@@ -51,14 +49,12 @@
 # CHECK-OUT-COMMON: TIMEOUT: per_test_timeout :: infinite_loop.py
 # CHECK-OUT-COMMON: Timeout: Reached timeout of 1 seconds
 # CHECK-OUT-COMMON: Command {{([0-9]+ )?}}Output
-# CHECK-OUT-COMMON: Running infinite loop
 
 # CHECK-OUT-COMMON: PASS: per_test_timeout :: short.py
 
 # CHECK-OUT-COMMON: TIMEOUT: per_test_timeout :: slow.py
 # CHECK-OUT-COMMON: Timeout: Reached timeout of 1 seconds
 # CHECK-OUT-COMMON: Command {{([0-9]+ )?}}Output
-# CHECK-OUT-COMMON: Running slow program
 
 # CHECK-OUT-COMMON: Expected Passes{{ *}}: 1
 # CHECK-OUT-COMMON: Individual Timeouts{{ *}}: 2
@@ -79,14 +75,12 @@
 # CHECK-CMDLINE-OVERRIDE-OUT: TIMEOUT: per_test_timeout :: infinite_loop.py
 # CHECK-CMDLINE-OVERRIDE-OUT: Timeout: Reached timeout of 2 seconds
 # CHECK-CMDLINE-OVERRIDE-OUT: Command {{([0-9]+ )?}}Output
-# CHECK-CMDLINE-OVERRIDE-OUT: Running infinite loop
 
 # CHECK-CMDLINE-OVERRIDE-OUT: PASS: per_test_timeout :: short.py
 
 # CHECK-CMDLINE-OVERRIDE-OUT: TIMEOUT: per_test_timeout :: slow.py
 # CHECK-CMDLINE-OVERRIDE-OUT: Timeout: Reached timeout of 2 seconds
 # CHECK-CMDLINE-OVERRIDE-OUT: Command {{([0-9]+ )?}}Output
-# CHECK-CMDLINE-OVERRIDE-OUT: Running slow program
 
 # CHECK-CMDLINE-OVERRIDE-OUT: Expected Passes{{ *}}: 1
 # CHECK-CMDLINE-OVERRIDE-OUT: Individual Timeouts{{ *}}: 2




More information about the llvm-commits mailing list