From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7833) id 70E55385741C; Thu, 21 Apr 2022 13:42:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70E55385741C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Lancelot SIX To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb_spawn_attach_cmdline: use unsupported instead of untested X-Act-Checkin: binutils-gdb X-Git-Author: Lancelot SIX X-Git-Refname: refs/heads/master X-Git-Oldrev: 9d748d023d2df565e04974b5bb45618c24b30c15 X-Git-Newrev: 78088b89602ad5c2b68142d6a56481fb792725aa Message-Id: <20220421134207.70E55385741C@sourceware.org> Date: Thu, 21 Apr 2022 13:42:07 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 13:42:07 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D78088b89602a= d5c2b68142d6a56481fb792725aa commit 78088b89602ad5c2b68142d6a56481fb792725aa Author: Lancelot SIX Date: Thu Apr 21 09:28:21 2022 +0100 gdb_spawn_attach_cmdline: use unsupported instead of untested =20 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. =20 This patch fixes this oversight. =20 Change-Id: Ib87e33b9230f3fa7a85e06220ef4c63814b71f7d Diff: --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 0c00d599ca5..47cb2b23676 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 }= { =20 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\\." {