diff options
author | Tom Tromey <tromey@adacore.com> | 2024-12-11 06:54:27 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-12-12 06:37:41 -0700 |
commit | 439334eba0dafe61a01b9b9404f0bbaa6e25c853 (patch) | |
tree | 666a096e4d4e8b58757c5c5d8c64bbafbe24307a /gdb/testsuite/gdb.ada/null_array.exp | |
parent | 196e49215b368edfaf6db81200d24bb99ebb5a02 (diff) | |
download | binutils-439334eba0dafe61a01b9b9404f0bbaa6e25c853.zip binutils-439334eba0dafe61a01b9b9404f0bbaa6e25c853.tar.gz binutils-439334eba0dafe61a01b9b9404f0bbaa6e25c853.tar.bz2 |
Fix GNAT version check in gdb.ada
Commit 1411185a ("Introduce and use gnat_version_compare") changed the
Ada tests to use a new proc for version checking. Unfortunately this
patch inadvertently reversed the sense of the test in
packed_array_assign.exp.
After fixing this, I went through that patch again and looked for
other problems. I found one spot where the wrong syntax was used, and
some others where I believe the sense of the test was inverted.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32444
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.ada/null_array.exp')
-rw-r--r-- | gdb/testsuite/gdb.ada/null_array.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/null_array.exp b/gdb/testsuite/gdb.ada/null_array.exp index 7fa7c19..b4e218f 100644 --- a/gdb/testsuite/gdb.ada/null_array.exp +++ b/gdb/testsuite/gdb.ada/null_array.exp @@ -28,7 +28,7 @@ clean_restart ${testfile} set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb] runto "foo.adb:$bp_location" -if {[gnat_version_compare <= 4.4]} { +if {[gnat_version_compare <= {4 4}]} { # Ada array bounds are missing in older GCCs. setup_xfail *-*-* } |