mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 23:52:45 +00:00
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
This commit is contained in:
parent
8a1a84f96e
commit
e33f02f0bb
10
llvm/test/Scripts/ignore
Executable file
10
llvm/test/Scripts/ignore
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user