From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YLBhHuaW3Ga3dCMAWB0awg (envelope-from ) for ; Sat, 07 Sep 2024 14:09:42 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=H7TlO7mb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 662241E353; Sat, 7 Sep 2024 14:09:42 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-12.8 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CFECD1E08F for ; Sat, 7 Sep 2024 14:09:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 11B22385DDEE for ; Sat, 7 Sep 2024 18:09:41 +0000 (GMT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 1A8413858C78 for ; Sat, 7 Sep 2024 18:09:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A8413858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1A8413858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725732562; cv=none; b=NlTFMMTIKhyFRj+Az2LkUjVnC6lMPH7fjzRw7XAIyg/uMclE0+2d7iJs4N4PN2ZNBVITnVqxXd5lFpIMbI5FecIg8pwl9AAGw5NbVEK6GPzLEVQfFX4+oSR2HY3Lzh0VrxvGUIkQKXbAntji0YV5yCs6SRVF93YE0h1Cy5AB/VQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725732562; c=relaxed/simple; bh=te7WKMEhKLtSfSjayA49SSPUHCwa8v2NWpEitPy8J2E=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=AZ5qQSqjWw6IhQ+baFcUqNMT6wcj9kD/WdvrlLmQz7YwZ0ybFhDZvuvSiN/BfrpObGMHyjEQL7yyV6k1d3q6VzGbrseYUzNOZJxpBUdxsxyz7UKK9EyNLkn7J2AEb0Suo83zw7DmI34Mbc8AV37FBCd3oCrZc9JQQopWhg4bkLI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725732560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3NPiva+R6vnUDapEez1BKATVChRnF5CC1pGsFKBKJdo=; b=H7TlO7mb5pkydY/dTv3xd0Vhipuui+VNajv8DcMm34y1nmg7eCt91RvU6gjhu6+h3tMwSy N5cRSt0cRr0mCdEsxSAif9O2iNiJ5ToJ0hY7PnzeUdHJYwan0ZxCSP4AbsYZWD0o6bkwKS 4GTo6aHh9Wg9j7EbGvJ7/Ok/Jitv/JA= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-92-yYb1KMVwObCKohl0crjTnQ-1; Sat, 07 Sep 2024 14:09:19 -0400 X-MC-Unique: yYb1KMVwObCKohl0crjTnQ-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 85FFD19560A2; Sat, 7 Sep 2024 18:09:18 +0000 (UTC) Received: from f40-zbm-amd (unknown [10.22.65.143]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A765A1956048; Sat, 7 Sep 2024 18:09:17 +0000 (UTC) Date: Sat, 7 Sep 2024 11:09:07 -0700 From: Kevin Buettner To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] [gdb/testsuite] Handle missing curses in gdb.python/py-missing-debug.exp Message-ID: <20240907110907.407df0ce@f40-zbm-amd> In-Reply-To: <20240907033713.4483-1-tdevries@suse.de> References: <20240907033713.4483-1-tdevries@suse.de> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 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 On Sat, 7 Sep 2024 05:37:13 +0200 Tom de Vries wrote: > On a system with python 3.6, module gdb.missing_debug imports module curses, > so when running test-case gdb.python/py-missing-debug.exp on a system without > that module installed, we run into: > ... > (gdb) source py-missing-debug.py^M > Python Exception : Module 'curses' is not installed.^M > Use:^M > sudo zypper install python36-curses^M > to install it.^M > Error occurred in Python: Module 'curses' is not installed.^M > Use:^M > sudo zypper install python36-curses^M > to install it.^M > (gdb) FAIL: gdb.python/py-missing-debug.exp: source python script > ... > > Fix this by issuing UNSUPPORTED instead, and bailing out. > > Tested on x86_64-linux. > > PR testsuite/31576 > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31576 LGTM. Approved-by: Kevin Buettner