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:
Andrew Burgess
2023-07-10 12:05:21 +01:00
parent 3f3ffaca04
commit 44c8334f4a

View File

@@ -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.