From 44c8334f4af5b9895d196077f23e20e15eff4c03 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 10 Jul 2023 12:05:21 +0100 Subject: [PATCH] gdb/testsuite: return after reporting a test unsupported In this commit: commit 8bcead69665af3a9f9867cd34c3a1daf22120027 Date: Tue May 23 11:25:01 2023 +0100 gdb/testsuite: add test for core file with a 0 pid a new test gdb.arch/core-file-pid0.exp was added. This test includes a pre-generated core file for x86-64 and for other architectures the test reports 'unsupported'. However, after reporting 'unsupported' the test failed to perform an early return, so the test would then carry on and try to actually perform the test, which resulted in some TCL errors. Fix this by returning after reporting the test unsupported. --- gdb/testsuite/gdb.arch/core-file-pid0.exp | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/testsuite/gdb.arch/core-file-pid0.exp b/gdb/testsuite/gdb.arch/core-file-pid0.exp index 56746cca567..46b8c6db5ed 100644 --- a/gdb/testsuite/gdb.arch/core-file-pid0.exp +++ b/gdb/testsuite/gdb.arch/core-file-pid0.exp @@ -28,6 +28,7 @@ if {[istarget "x86_64-*-linux*"]} { set cf_size 8757248 } else { unsupported "no pre-generated core file for this target" + return -1 } # Decompress the core file. -- 2.30.2