mirror of
git://git.sv.gnu.org/findutils.git
synced 2026-01-29 20:58:59 +01:00
The syntax-check complains: $ make syntax-check -k ... maint.mk: the above files do not call bindtextdomain make: *** [maint.mk:869: sc_bindtextdomain] Error 1 ... maint.mk: the above files do not include <config.h> make: *** [maint.mk:509: sc_require_config_h] Error 1 ... maint.mk: use EXIT_* values rather than magic number make: *** [maint.mk:411: sc_prohibit_magic_number_exit] Error 1 ... maint.mk: found unmarked diagnostic(s) make: *** [maint.mk:916: sc_unmarked_diagnostics] Error 1 ... make: *** [cfg.mk:111: sc_tests_list_consistency] Error 1 ... maint.mk: Please make test executable: tests/xargs/test-sigusr.c make: *** [cfg.mk:124: sc_tests_executable] Error 1 * cfg.mk (exclude_file_name_regexp--sc_bindtextdomain): Add test-sigusr. (exclude_file_name_regexp--sc_unmarked_diagnostics): Define with the pattern of the test-sigusr source file. (sc_tests_list_consistency): Strip off ".c" suffix. (sc_tests_executable): Exempt C source from this rule. * tests/local.mk (TEST_EXTENSIONS): Add .c sources, needed also for sc_tests_list_consistency to work. * tests/xargs/test-sigusr.c (#include <config.h>): Add to avoid sc_require_config_h failure. (verify_signal_ignored): Call exit with EXIT_FAILURE instead of 1 to avoid sc_prohibit_magic_number_exit failure. (verify_signal_is_fatal): Likewise. (verify_signal_is_nonfatal_with_p): Likewise. * tests/.gitignore (/xargs/test-sigusr): While at it, add an entry for the built test program here.