From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2NnoN3bJx2AYUQAAWB0awg (envelope-from ) for ; Mon, 14 Jun 2021 17:26:14 -0400 Received: by simark.ca (Postfix, from userid 112) id E2CF61F163; Mon, 14 Jun 2021 17:26:14 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9B8711E54D for ; Mon, 14 Jun 2021 17:26:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67460397EC02 for ; Mon, 14 Jun 2021 21:26:13 +0000 (GMT) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by sourceware.org (Postfix) with ESMTPS id 32E393973004 for ; Mon, 14 Jun 2021 21:24:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 32E393973004 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id y13-20020a1c4b0d0000b02901c20173e165so771435wma.0 for ; Mon, 14 Jun 2021 14:24:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IYTQ1gBRykf+MV+qKQrirxAdUPn4SBlQzOBUxXcj2kU=; b=sdBUVZuIZDQ7AdUbN0cqaZ9OgnGn9+ZjEcAo/2e/FCbv8/oaMaU9ab7K4M12QEOCZV 3nbFBcdBNFmkA07CKh9siRLx9eUDJZICGLhKKTBHH44RfUmillNk/xhsI+NT+Lz9mqSt KOCiRRe1xPE463zaL0OHFcp3am0gUdfKh+YYZsYxrrysZMUZIPQf8DsTciuOZdj2Apjl hfjTXf7cdEcHyyICtFFHokA4ZK02qQVp2jAUpGWm/frMICBc7suhBW97/qvNzfqENgtH a+k7mKncTulppa1lXnqpf1NyWMtXf4239OpzQfhfk5GZgQ8/+rb8QjYiA07P82EMkY8n nS+A== X-Gm-Message-State: AOAM5304A0QQqQnxMupGfdEXGjIedI6473FSGYiv768syKBtK8AOpI3K nUbPkLcH/GjkKBCkDt8DzAzzDI8TT32pQg== X-Google-Smtp-Source: ABdhPJztPOo5/nghmvw8dsDAkknm9UPG43y6dnD21WeZd7JA3JSWiuNvtCBmxaVm5ailbhe6zKm8Iw== X-Received: by 2002:a7b:c20b:: with SMTP id x11mr1210647wmi.9.1623705866618; Mon, 14 Jun 2021 14:24:26 -0700 (PDT) Received: from localhost ([2001:8a0:f932:6a00:6b6e:c7b6:c5a7:aac3]) by smtp.gmail.com with ESMTPSA id n8sm13989176wmi.16.2021.06.14.14.24.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Jun 2021 14:24:25 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH v2 07/16] Make inferior/GDB share terminal in tests expecting output after detach Date: Mon, 14 Jun 2021 22:24:01 +0100 Message-Id: <20210614212410.1612666-8-pedro@palves.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210614212410.1612666-1-pedro@palves.net> References: <20210614212410.1612666-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" A following patch will make GDB put spawned inferiors in their own terminal/session. A consequence of that is that if you do "run", and then "detach", GDB closes the terminal, so expecting inferior output after detach no longer works, the inferior is alive, but its output goes nowhere. There's only one testcase that expects output out of an inferior after detach. Tweak it to output to GDB's terminal instead. gdb/testsuite/ChangeLog: yyyy-mm-dd Pedro Alves * gdb.threads/process-dies-while-detaching.exp: Issue "tty /dev/tty" before starting program. Change-Id: Ic62bca178295763fb9c47657ee459fe715f7865e --- gdb/testsuite/gdb.threads/process-dies-while-detaching.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp index ac1aad26ec5..f01d4cf0666 100644 --- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp +++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp @@ -215,6 +215,7 @@ proc test_detach {multi_process cmd} { global binfile clean_restart ${binfile} + gdb_test_no_output "tty /dev/tty" if ![runto_main] { fail "can't run to main" @@ -240,6 +241,7 @@ proc test_detach_watch {multi_process cmd} { global binfile decimal clean_restart ${binfile} + gdb_test_no_output "tty /dev/tty" if ![runto_main] { fail "can't run to main" @@ -276,6 +278,7 @@ proc test_detach_killed_outside {multi_process cmd} { global binfile clean_restart ${binfile} + gdb_test_no_output "tty /dev/tty" if ![runto_main] { fail "can't run to main" -- 2.26.2