aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-07-10 12:05:21 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-07-10 12:05:21 +0100
commit44c8334f4af5b9895d196077f23e20e15eff4c03 (patch)
tree0a095ad6d33271e587fd8b68f61a0302e5bf3c8b
parent3f3ffaca04967511fa14b5cb6ee4cd1ae3802c39 (diff)
downloadgdb-44c8334f4af5b9895d196077f23e20e15eff4c03.zip
gdb-44c8334f4af5b9895d196077f23e20e15eff4c03.tar.gz
gdb-44c8334f4af5b9895d196077f23e20e15eff4c03.tar.bz2
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.
-rw-r--r--gdb/testsuite/gdb.arch/core-file-pid0.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/core-file-pid0.exp b/gdb/testsuite/gdb.arch/core-file-pid0.exp
index 56746cc..46b8c6d 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.