aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLancelot SIX <lancelot.six@amd.com>2022-04-21 09:28:21 +0100
committerLancelot SIX <lancelot.six@amd.com>2022-04-21 14:41:19 +0100
commit78088b89602ad5c2b68142d6a56481fb792725aa (patch)
tree99a4da2e9ba1126211e104947367fb47d8abf351
parent9d748d023d2df565e04974b5bb45618c24b30c15 (diff)
downloadbinutils-78088b89602ad5c2b68142d6a56481fb792725aa.zip
binutils-78088b89602ad5c2b68142d6a56481fb792725aa.tar.gz
binutils-78088b89602ad5c2b68142d6a56481fb792725aa.tar.bz2
gdb_spawn_attach_cmdline: use unsupported instead of untested
In a previous commit (b750766ac96: gdb/testsuite: Introduce and use gdb_spawn_attach_cmdline), if gdb_spawn_attach_cmdline cannot have GDB attach to the process because of ptrace restrictions (operation not permitted), the proc issues UNTESTED. This should really be UNSUPPORTED, as it is done in gdb_attach. This patch fixes this oversight. Change-Id: Ib87e33b9230f3fa7a85e06220ef4c63814b71f7d
-rw-r--r--gdb/testsuite/lib/gdb.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 0c00d59..47cb2b2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5205,7 +5205,7 @@ proc_with_prefix gdb_spawn_attach_cmdline { testpid } {
gdb_test_multiple "" "$test" {
-re -wrap "ptrace: Operation not permitted\\." {
- untested "$gdb_test_name (operation not permitted)"
+ unsupported "$gdb_test_name (operation not permitted)"
return 0
}
-re -wrap "ptrace: No such process\\." {