X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=libmudflap%2Ftestsuite%2Flib%2Fmfdg.exp;h=5f864745c01ded55ea133ef34e3ff3f893d65050;hp=0db44d5fbbd87f4f8a611a382b81420e40b7cd1d;hb=d45b884a73402fb1589e08517911078aaba4ede0;hpb=afb3d3c49fad6249e0b85722105326e9031d9475 diff --git a/libmudflap/testsuite/lib/mfdg.exp b/libmudflap/testsuite/lib/mfdg.exp index 0db44d5fbbd..5f864745c01 100644 --- a/libmudflap/testsuite/lib/mfdg.exp +++ b/libmudflap/testsuite/lib/mfdg.exp @@ -33,6 +33,7 @@ load_lib dg.exp proc dg-test { args } { global dg-do-what-default dg-interpreter-batch-mode dg-linenum-format global errorCode errorInfo + global additional_prunes global tool global srcdir ;# eg: /calvin/dje/build/gcc/./testsuite/ global host_triplet target_triplet @@ -91,6 +92,8 @@ proc dg-test { args } { set dg-extra-tool-flags $default_extra_tool_flags set dg-final-code "" + set additional_prunes "" + # `dg-output-text' is a list of two elements: pass/fail and text. # Leave second element off for now (indicates "don't perform test") set dg-output-text "P" @@ -334,7 +337,6 @@ proc dg-test { args } { } - # # Indicate that this test case is to be rerun several times. This # is useful if it is nondeterministic. This applies to rerunning the @@ -346,3 +348,18 @@ proc dg-repetitions { line value } { upvar dg-repetitions repetitions set repetitions $value } + + +# Prune any messages matching ARGS[1] (a regexp) from test output. +proc dg-prune-output { args } { + global additional_prunes + + if { [llength $args] != 2 } { + error "[lindex $args 1]: need one argument" + return + } + + lappend additional_prunes [lindex $args 1] +} + +set additional_prunes ""