]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Minor DAP test cleanups
authorTom Tromey <tromey@adacore.com>
Wed, 3 Dec 2025 20:39:22 +0000 (13:39 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Dec 2025 14:32:32 +0000 (07:32 -0700)
This patch removes the "-1" from returns in the DAP tests, and also
reindents one of those lines at the same time.

gdb/testsuite/gdb.dap/ada-arrays.exp
gdb/testsuite/gdb.dap/ada-nested.exp
gdb/testsuite/gdb.dap/ada-scopes.exp
gdb/testsuite/gdb.dap/catch-exception.exp

index 8912a19aa59ef9a848983d7f791b893721bde2ea..3823f9e6c4eafe5f67f0d36720497878407967d4 100644 (file)
@@ -26,7 +26,7 @@ set cobject [standard_output_file ${cfile}.o]
 
 gdb_compile "${csrcfile}" "${cobject}" object [list debug]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-  return -1
+    return
 }
 
 if {[dap_initialize] == ""} {
index c8ed30eabf9df92b1ccfc2ded9689ac6dfe68775..155080e1f3e9656b2105ac79a050bb87df727653 100644 (file)
@@ -24,7 +24,7 @@ standard_ada_testfile prog
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
         {debug additional_flags=-gnata}] != ""} {
-    return -1
+    return
 }
 
 if {[dap_initialize] == ""} {
index 1c787e38609af22d43052e767dd4fc39e9c9fb9c..22ae47c9fc72c3b4ea51f7b1f4016ff034676803 100644 (file)
@@ -22,7 +22,7 @@ standard_ada_testfile prog
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
         {debug additional_flags=-gnata}] != ""} {
-    return -1
+    return
 }
 
 if {[dap_initialize] == ""} {
index 0e8c27ac955696773d5ac972d180ae68333cf1ff..b730b211ff459783647a8654f986471bb0de12c9 100644 (file)
@@ -22,7 +22,7 @@ standard_ada_testfile prog
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
         {debug additional_flags=-gnata}] != ""} {
-    return -1
+    return
 }
 
 if {[dap_initialize] == ""} {