summaryrefslogtreecommitdiff
path: root/test/BugPoint/compile-custom.ll.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/BugPoint/compile-custom.ll.py')
-rwxr-xr-xtest/BugPoint/compile-custom.ll.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/BugPoint/compile-custom.ll.py b/test/BugPoint/compile-custom.ll.py
new file mode 100755
index 0000000000..32093557d6
--- /dev/null
+++ b/test/BugPoint/compile-custom.ll.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+import sys
+
+# Currently any print-out from the custom tool is interpreted as a crash
+# (i.e. test is still interesting)
+
+print "Error: " + ' '.join(sys.argv[1:])
+
+sys.exit(1)