aboutsummaryrefslogtreecommitdiffstats
path: root/test/Scripts
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-14 16:14:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-14 16:14:08 +0000
commitb7fc87656f68cafe0a84fe76cad0d0952dad08ec (patch)
treeb342320aaaf46972cd6e63441a9ff916468cc7f5 /test/Scripts
parente01017bba4f44ab65eba11fd065c9cd16b5edb33 (diff)
downloadexternal_llvm-b7fc87656f68cafe0a84fe76cad0d0952dad08ec.zip
external_llvm-b7fc87656f68cafe0a84fe76cad0d0952dad08ec.tar.gz
external_llvm-b7fc87656f68cafe0a84fe76cad0d0952dad08ec.tar.bz2
Add a script to run a command but ignore its return code. This script
always returns 0. This is useful with the llvm.exp based dejagnu testing when a test wants to check the error output of tool invocation that returns non-zero. Since every command is checked with llvm.exp, there needs to be a way to prevent that checking and this script is it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Scripts')
-rwxr-xr-xtest/Scripts/ignore10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Scripts/ignore b/test/Scripts/ignore
new file mode 100755
index 0000000..865ae4d
--- /dev/null
+++ b/test/Scripts/ignore
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Program: ignore
+#
+# Synopsis: Ignore the result code of the command and always return 0
+#
+# Syntax: ignore command <arguments>
+
+"$@" || exit 0 && exit 0
+exit 0