tests: ensure $required is not set too late
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 24 May 2013 10:46:17 +0000 (12:46 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 24 May 2013 11:15:36 +0000 (13:15 +0200)
commitf6b9a22e7e7de330961cecdb55dbfcf15bb7e3c9
tree0fb1673985fa5522fa5e3eb26ea7cd5efa328818
parentd19eb85cc3fda93c0dd3df93a2c126dcae1de16a
tests: ensure $required is not set too late

And do so in a safer way, with a runtime check rather than a brittle
static maintainer check.

* t/ax/test-init.sh: Set the 'required' variable to readonly.
* syntax-checks.mk (sc_tests_required_after_defs): Remove.
(syntax_check_rules): No longer list it.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
syntax-checks.mk
t/ax/test-init.sh