Skip to content

Portable trap conditions in run-test.sh.

Ben Wagner requested to merge bungeman/fontconfig:run_test_trap_no_SIG into master

Posix says:

    The condition can be EXIT, 0 (equivalent to EXIT), or a signal
    specified using a symbolic name, without the SIG prefix, as listed
    in the tables of signal names in the <signal.h> header defined in
    the Base Definitions volume of IEEE Std 1003.1-2001, Chapter 13,
    Headers; for example, HUP, INT, QUIT, TERM. Implementations may
    permit names with the SIG prefix or ignore case in signal names as
    an extension.

Remove 'SIG' from trap conditions in run-test.sh for portability.

Discovered while running the tests locally. If the local shell doesn't support the SIG prefix one gets a message along the lines of trap: SIGINT: bad trap and the tests don't run.

Merge request reports