forked from Imagelibrary/binutils-gdb
gdb/testsuite: return after reporting a test unsupported
In this commit:
commit 8bcead6966
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user