testsuite: Fix scan-lang-dump-not

turned out scan-lang-dump-not was broken in the 3 argument case -- I'd missed a
necessary empty arg.  Fixed thusly.

	gcc/testsuite/
	* lib/scanlang.exp (scan-lang-dump-not): Fix 3-arg case.
This commit is contained in:
Nathan Sidwell 2020-07-13 08:04:26 -07:00
parent c4facd483d
commit a431251922
1 changed files with 5 additions and 4 deletions

View File

@ -36,10 +36,11 @@ proc scan-lang-dump { args } {
return
}
if { [llength $args] >= 3 } {
scan-dump "lang" [lindex $args 0] \
"\[0-9\]\[0-9\]\[0-9\]l.[lindex $args 1]" "" [lindex $args 2]
scan-dump-not "lang" [lindex $args 0] \
"\[0-9\]\[0-9\]\[0-9\]l.[lindex $args 1]" "" \
[lindex $args 2]
} else {
scan-dump "lang" [lindex $args 0] \
"\[0-9\]\[0-9\]\[0-9\]l.[lindex $args 1]" ""
scan-dump-not "lang" [lindex $args 0] \
"\[0-9\]\[0-9\]\[0-9\]l.[lindex $args 1]"
}
}