From f1578845bf4337ae79356b1983df3a06a5634b75 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 3 Dec 2025 13:39:22 -0700 Subject: [PATCH] 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. --- gdb/testsuite/gdb.dap/ada-arrays.exp | 2 +- gdb/testsuite/gdb.dap/ada-nested.exp | 2 +- gdb/testsuite/gdb.dap/ada-scopes.exp | 2 +- gdb/testsuite/gdb.dap/catch-exception.exp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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] == ""} { -- 2.47.3