[PATCH] D27908: [lit] Fix shtest-output-printing test on Windows

Brian Gesiak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 18 17:32:13 PST 2016

modocache created this revision.
modocache added reviewers: echristo, beanz, ddunbar, delcypher.
modocache added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

When run on Windows, the shtest-output-printing.py test fails because it
searches for Unix path separator '/', as opposed to Windows separator '\'.
Match both so that the test passes on all platforms.



Index: utils/lit/tests/shtest-output-printing.py
--- utils/lit/tests/shtest-output-printing.py
+++ utils/lit/tests/shtest-output-printing.py
@@ -22,7 +22,7 @@
 # CHECK:      $ "wc" "missing-file"
-# CHECK-NEXT: # redirected output from '{{.*}}/basic.txt.tmp.out':
+# CHECK-NEXT: # redirected output from '{{.*[/\\]}}basic.txt.tmp.out':
 # CHECK-NEXT: missing-file{{.*}} No such file or directory
 # CHECK:      note: command had no output on stdout or stderr
 # CHECK-NEXT: error: command failed with exit status: 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27908.81903.patch
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161219/ed2b8e9c/attachment.bin>

More information about the llvm-commits mailing list