[llvm] r270217 - [Hexagon] Use pipe instead of temporary files in tests

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 07:01:39 PDT 2016


Author: kparzysz
Date: Fri May 20 09:01:34 2016
New Revision: 270217

URL: http://llvm.org/viewvc/llvm-project?rev=270217&view=rev
Log:
[Hexagon] Use pipe instead of temporary files in tests

Modified:
    llvm/trunk/test/MC/Hexagon/endloop.s
    llvm/trunk/test/MC/Hexagon/new-value-check.s
    llvm/trunk/test/MC/Hexagon/out_of_range.s

Modified: llvm/trunk/test/MC/Hexagon/endloop.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Hexagon/endloop.s?rev=270217&r1=270216&r2=270217&view=diff
==============================================================================
--- llvm/trunk/test/MC/Hexagon/endloop.s (original)
+++ llvm/trunk/test/MC/Hexagon/endloop.s Fri May 20 09:01:34 2016
@@ -1,4 +1,4 @@
-# RUN: llvm-mc -triple=hexagon -filetype=asm %s 2>%t; FileCheck %s <%t
+# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
 
 # Check that a branch in an end-loop packet is caught.
 

Modified: llvm/trunk/test/MC/Hexagon/new-value-check.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Hexagon/new-value-check.s?rev=270217&r1=270216&r2=270217&view=diff
==============================================================================
--- llvm/trunk/test/MC/Hexagon/new-value-check.s (original)
+++ llvm/trunk/test/MC/Hexagon/new-value-check.s Fri May 20 09:01:34 2016
@@ -1,7 +1,7 @@
-# RUN: llvm-mc -triple=hexagon < %s 2>%t ; \
-# RUN:     FileCheck %s < %t --check-prefix=CHECK-STRICT
-# RUN: llvm-mc -triple=hexagon -relax-nv-checks < %s 2>%t ; \
-# RUN:     FileCheck %s < %t --check-prefix=CHECK-RELAXED
+# RUN: not llvm-mc -triple=hexagon < %s 2>&1 | \
+# RUN:     FileCheck %s --check-prefix=CHECK-STRICT
+# RUN: not llvm-mc -triple=hexagon -relax-nv-checks < %s 2>&1 | \
+# RUN:     FileCheck %s --check-prefix=CHECK-RELAXED
 
 # CHECK-STRICT: :12:1: error: register `R0' used with `.new' but not validly modified in the same packet
 # CHECK-RELAXED: :12:1: error: register `R0' used with `.new' but not validly modified in the same packet

Modified: llvm/trunk/test/MC/Hexagon/out_of_range.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Hexagon/out_of_range.s?rev=270217&r1=270216&r2=270217&view=diff
==============================================================================
--- llvm/trunk/test/MC/Hexagon/out_of_range.s (original)
+++ llvm/trunk/test/MC/Hexagon/out_of_range.s Fri May 20 09:01:34 2016
@@ -1,4 +1,4 @@
-# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2> %t; FileCheck %s < %t
+# RUN: not llvm-mc -triple=hexagon -filetype=asm %s 2>&1 | FileCheck %s
 
 r1:0=##0xFFFFFF7000001000
 # CHECK: rror: value -144(0xffffffffffffff70) out of range: -128-127




More information about the llvm-commits mailing list