summaryrefslogtreecommitdiff
path: root/contrib/reghunt/bin/gcc-svn-checkfail
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/reghunt/bin/gcc-svn-checkfail')
-rwxr-xr-xcontrib/reghunt/bin/gcc-svn-checkfail9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/reghunt/bin/gcc-svn-checkfail b/contrib/reghunt/bin/gcc-svn-checkfail
new file mode 100755
index 000000000..3877a062b
--- /dev/null
+++ b/contrib/reghunt/bin/gcc-svn-checkfail
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+# Given an identifier that is an index into the current patch list,
+# return 1 if the corresponding SVN revision number is in the list of
+# known failures, 0 otherwise.
+
+ID=$1
+REV=`${REG_IDS} -f index -t rev ${ID}`
+grep -q "^${REV}$" ${REG_FAILLIST}