diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2019-08-06 16:11:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-08-06 16:11:01 -0700 |
commit | a57402911033fb7d40cd223138163fb5b2ffe974 (patch) | |
tree | af929fef94ec244afa085392d3f5ab2abaf305d1 /cfg.mk | |
parent | 0e2d4e14256c83f235484c6657a748cca3d89c0c (diff) | |
download | coreutils-a57402911033fb7d40cd223138163fb5b2ffe974.tar.gz |
maint: fix error in syntax-check checking
The previous commit introduced a bug into the following syntax-check,
and thus effectively turned it off:
$ make sc_prohibit_test_calls_print_ver_with_irrelevant_argument; \
echo $?
prohibit_test_calls_print_ver_with_irrelevant_argument
fatal: cannot change to 'grep': No such file or directory
0
* cfg.mk (sc_prohibit_test_calls_print_ver_with_irrelevant_argument):
Remove changing directory, and pass $(srcdir) as argument to 'git -C'.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -635,8 +635,7 @@ sc_prohibit_test_background_without_cleanup_: # Ensure that tests call the print_ver_ function for programs which are # actually used in that test. sc_prohibit_test_calls_print_ver_with_irrelevant_argument: - @cd $(srcdir) \ - && git -C grep -w print_ver_ tests \ + @git -C $(srcdir) grep -w print_ver_ tests \ | sed 's#:print_ver_##' \ | { fail=0; \ while read file name; do \ |