Patch 2: [fixincludes] Clean up fixincludes test machinery

TODO Prior to commit:

* fixincl.x: Regenerate

ChangeLog

2012-09-23  Bruce Korb  <bk...@gnu.org>

        * check.tpl: export TEST_MODE=true for testing
        * fixincl.c (te_verbose): extract to fixlib.h
        (run_compiles): in test mode, if the fix is a replacement,
        then skip the test.  The fix will not be applied.
        * fixlib.h (fixinc_mode): new global variable that defaults to
        TESTING_OFF but is set to TESTING_ON when TEST_MODE is true.
        * fixopts.c: define this global variable
        (initialize_opts): set it to TESTING_ON under proper conditions
        * inclhack.def (AAB_darwin7_9_long_double_funcs_2): this is *NOT*
        a replacement fix.  Rename it and move it where it belongs as
        (darwin_9_long_double_funcs_2): renamed fix
        (broken_nan): this had a broken selection regex.  Could never work.
        * tests/base/architecture/ppc/math.h:  replacement fixes are not tested,
        so remove all the replacement text.  Add in the "broken_nan" test
        that used to never, ever fire.

Reply via email to