summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite33f02f0bbdf9d8687b1d060c70a8d0e919b096e (patch)
tree06e5bcb5ed3e80e07af88f13cd2c4002de56b9b5 /llvm/test/Scripts
parent8a1a84f96ea55097e76826184e7afa8f8430f551 (diff)
downloadbcm5719-llvm-e33f02f0bbdf9d8687b1d060c70a8d0e919b096e.tar.gz
bcm5719-llvm-e33f02f0bbdf9d8687b1d060c70a8d0e919b096e.zip
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. llvm-svn: 35991
Diffstat (limited to 'llvm/test/Scripts')
-rwxr-xr-xllvm/test/Scripts/ignore10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Scripts/ignore b/llvm/test/Scripts/ignore
new file mode 100755
index 00000000000..865ae4df1bd
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud