From: Tom Tromey Date: Wed, 3 Dec 2025 20:39:22 +0000 (-0700) Subject: Minor DAP test cleanups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1578845bf4337ae79356b1983df3a06a5634b75;p=thirdparty%2Fbinutils-gdb.git Minor DAP test cleanups This patch removes the "-1" from returns in the DAP tests, and also reindents one of those lines at the same time. --- diff --git a/gdb/testsuite/gdb.dap/ada-arrays.exp b/gdb/testsuite/gdb.dap/ada-arrays.exp index 8912a19aa59..3823f9e6c4e 100644 --- a/gdb/testsuite/gdb.dap/ada-arrays.exp +++ b/gdb/testsuite/gdb.dap/ada-arrays.exp @@ -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] == ""} { diff --git a/gdb/testsuite/gdb.dap/ada-nested.exp b/gdb/testsuite/gdb.dap/ada-nested.exp index c8ed30eabf9..155080e1f3e 100644 --- a/gdb/testsuite/gdb.dap/ada-nested.exp +++ b/gdb/testsuite/gdb.dap/ada-nested.exp @@ -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] == ""} { diff --git a/gdb/testsuite/gdb.dap/ada-scopes.exp b/gdb/testsuite/gdb.dap/ada-scopes.exp index 1c787e38609..22ae47c9fc7 100644 --- a/gdb/testsuite/gdb.dap/ada-scopes.exp +++ b/gdb/testsuite/gdb.dap/ada-scopes.exp @@ -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] == ""} { diff --git a/gdb/testsuite/gdb.dap/catch-exception.exp b/gdb/testsuite/gdb.dap/catch-exception.exp index 0e8c27ac955..b730b211ff4 100644 --- a/gdb/testsuite/gdb.dap/catch-exception.exp +++ b/gdb/testsuite/gdb.dap/catch-exception.exp @@ -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] == ""} {