summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-12-06 19:29:37 +0100
committerSimon Josefsson <simon@josefsson.org>2011-12-06 19:29:37 +0100
commita45f4f9acdf46b8c039bef2c169a2557b4df0a29 (patch)
treed30967e27ba862ebfe13969e7ecb93e88a8e1fee /maint.mk
parentf9fef198fe5ee5b28eebee50220e07d2f03877c4 (diff)
downloadlibtasn1-a45f4f9acdf46b8c039bef2c169a2557b4df0a29.tar.gz
libtasn1-a45f4f9acdf46b8c039bef2c169a2557b4df0a29.tar.bz2
libtasn1-a45f4f9acdf46b8c039bef2c169a2557b4df0a29.zip
Update gnulib files.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index 76844a0..e4efb5f 100644
--- a/maint.mk
+++ b/maint.mk
@@ -1157,6 +1157,16 @@ sc_cross_check_PATH_usage_in_tests:
1>&2; exit 1; } || :; \
fi
+# BRE regex of file contents to identify a test script.
+_test_script_regex ?= \<init\.sh\>
+
+# In tests, use "compare expected actual", not the reverse.
+sc_prohibit_reversed_compare_failure:
+ @prohibit='\<compare [^ ]+ ([^ ]*exp|/dev/null)' \
+ containing='$(_test_script_regex)' \
+ halt='reversed compare arguments' \
+ $(_sc_search_regexp)
+
# #if HAVE_... will evaluate to false for any non numeric string.
# That would be flagged by using -Wundef, however gnulib currently
# tests many undefined macros, and so we can't enable that option.