Try to escape the '$'s in these so they reach the underlying 'sh' invocation.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Aug 2010 08:54:19 +0000 (08:54 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Aug 2010 08:54:19 +0000 (08:54 +0000)
I have no idea how lit did the right thing here, but other test runners don't.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111805 91177308-0d34-0410-b5e6-96231b3b80d8

test/Other/close-stderr.ll

index ced32a8be33e621e12ab6c5e2b39c758151d22ce..60fab3df0d9f904fb85314248cb4811ba38a0ff2 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: sh -c "\
-; RUN:        opt --reject-this-option 2>&-; echo $?; \
-; RUN:        opt -o /dev/null /dev/null 2>&-; echo $?; \
+; RUN:        opt --reject-this-option 2>&-; echo \$?; \
+; RUN:        opt -o /dev/null /dev/null 2>&-; echo \$?; \
 ; RUN:       " | FileCheck %s
 ; CHECK: {{^1$}}
 ; CHECK: {{^0$}}