]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Restore bitshift.exp tests
authorHannes Domani <ssbssa@yahoo.de>
Tue, 11 Jun 2024 18:31:54 +0000 (20:31 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Tue, 11 Jun 2024 18:36:34 +0000 (20:36 +0200)
Commit cdd4206647 unintentionally disabled all tests of bitshift.exp,
so it actually just does this:

Running /c/src/repos/binutils-gdb.git/gdb/testsuite/gdb.base/bitshift.exp ...
PASS: gdb.base/bitshift.exp: complete set language

=== gdb Summary ===

 # of expected passes 1

It changed the 'continue' of unsupported languages to 'return', and
since ada is the first language and is unsupported, no tests were run.

This changes it back to 'continue', and the following patches fix
the regressions that were introduced since then unnoticed.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/bitshift.exp

index cfb1e7b98208cd55807e3e932c02860b28bc2293..61c7eca2747392f9cc65ab12d2050b8ad96349fe 100644 (file)
@@ -178,7 +178,7 @@ proc test_shifts {} {
            "unknown" "ada" "modula-2" "pascal" "fortran"
        }
        if {[lsearch -exact $skip_langs $lang] >= 0} {
-           return
+           continue
        }
 
        gdb_test_no_output "set language $lang"