diff options
author | Bruce Korb <bkorb@gnu.org> | 2012-10-29 16:44:34 +0000 |
---|---|---|
committer | Bruce Korb <korbb@gcc.gnu.org> | 2012-10-29 16:44:34 +0000 |
commit | 7e41654136975b1ee18cc8e7c97e16e9f6206452 (patch) | |
tree | 041ab47b1a5538f005ec95ec88d8276481253110 /fixincludes/fixincl.c | |
parent | 99a0106fa74a2d33ebb62ee5407e154508f59d83 (diff) |
Omit testing wrap and replacement fixes during testing.
This exposes a missing result and tests a test that got hidden before.
From-SVN: r192952
Diffstat (limited to 'fixincludes/fixincl.c')
-rw-r--r-- | fixincludes/fixincl.c | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/fixincludes/fixincl.c b/fixincludes/fixincl.c index 1133534202b..fecfb19e1b1 100644 --- a/fixincludes/fixincl.c +++ b/fixincludes/fixincl.c @@ -53,22 +53,8 @@ static const char z_std_preamble[] = original, manufacturer supplied header file. */\n\n"; int find_base_len = 0; - -typedef enum { - VERB_SILENT = 0, - VERB_FIXES, - VERB_APPLIES, - VERB_PROGRESS, - VERB_TESTS, - VERB_EVERYTHING -} te_verbose; - -te_verbose verbose_level = VERB_PROGRESS; int have_tty = 0; -#define VLEVEL(l) ((unsigned int) verbose_level >= (unsigned int) l) -#define NOT_SILENT VLEVEL(VERB_FIXES) - pid_t process_chain_head = (pid_t) -1; char* pz_curr_file; /* name of the current file under test/fix */ @@ -412,8 +398,17 @@ run_compiles (void) /* FOR every fixup, ... */ do { - tTestDesc *p_test = p_fixd->p_test_desc; - int test_ct = p_fixd->test_ct; + tTestDesc *p_test; + int test_ct; + + if (fixinc_mode && (p_fixd->fd_flags & FD_REPLACEMENT)) + { + p_fixd->fd_flags |= FD_SKIP_TEST; + continue; + } + + p_test = p_fixd->p_test_desc; + test_ct = p_fixd->test_ct; /* IF the machine type pointer is not NULL (we are not in test mode) AND this test is for or not done on particular machines |