From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id D50DA3954085 for ; Mon, 8 Mar 2021 18:37:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D50DA3954085 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x329.google.com with SMTP id u187so107826wmg.4 for ; Mon, 08 Mar 2021 10:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q+PpHzbWYh8e1JY7Bn0d3UqHwjbpUIO6wRfq4mpSjKE=; b=GM/wcgy7SK9ryX1J34EsmRbeorTYwD2JlVcPyIaCSoSKaSZNeHscAIuAEGbL4LRYO7 pqdlvSeaq9EgowvBcJH7OvYR7D2U+NYGOZGMQeq05yIxyw1oW2OMt6/KcSU0qwcDGDNb i4F2+WYVWmxyeHKfE2qloWTkcy6Ns8rE5bVlwLBMUfE/Wnud20Bs2fVyf3FcuL2aqGXt AygEXM4+mQWThbxs+ZtL3Ls5g4tm6npTT0U9er4eSIJ68ehwD7Ercp3bLbHMR/jnGxg9 EIsgQTh9bATR/q6Dd9jT+r/rvVA1Esn4tT71K5l30v7aotT/t5Lw0pZ/q9nfk9XI32pB p5Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q+PpHzbWYh8e1JY7Bn0d3UqHwjbpUIO6wRfq4mpSjKE=; b=r4ULv83o3nHOXaJ6dFdvs+bck/U8RAn4UYBjT2rAR7kqc4siGQw3OganyoMXQj1WPY 34az1Ld2QFvMDTTCM4jIj1xfYfApPGfTpbUphAYKqUEA8+sAw8SpXlTYx2paJPuBu6RY pWCPZaMKWLz++JtjqV0t43745i9PrC5JnZOCjIITbTficPn1RKEH1tZ3yXXosyZxaXc7 CTGGuaIoF/dkaJ/LjIELg+o1v6cNAXapds1pZXW1snEdqQakugrl0FpBuHLLBIx3R/IC RiBkgIYVldGR5H+R4v19w5lfZKaqRZ97O5QRa4u93/OSbcrWw2XGKIhMi1r3IHRGP13U YtYQ== X-Gm-Message-State: AOAM5310aTpw0ch4TAhgfeufewFFm9AjmiHwxYki4xcqzEfivro4e48n 267lXchtfDKyiSnTZAw7LW8MYWfNMO4TXQ== X-Google-Smtp-Source: ABdhPJz24odoVLn0HVPxnlT04lmTyQ3BlwXkXc/MNA7b8rU8oSw8Ky81L0Ry1LW5B15ciae6JxO9dQ== X-Received: by 2002:a1c:65c2:: with SMTP id z185mr176341wmb.2.1615228638805; Mon, 08 Mar 2021 10:37:18 -0800 (PST) Received: from localhost (host86-134-238-232.range86-134.btcentralplus.com. [86.134.238.232]) by smtp.gmail.com with ESMTPSA id i10sm18869022wrs.11.2021.03.08.10.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:37:18 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 05/14] gdb/testsuite: make test names unique in gdb.python/py-explore.exp Date: Mon, 8 Mar 2021 18:37:02 +0000 Message-Id: <3ac28aeb07ae3bb40b21ab8ef8121fa0cf48f812.1615228575.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 08 Mar 2021 18:37:21 -0000 Add a with_test_prefix to make test names unique. gdb/testsuite/ChangeLog: * gdb.python/py-explore.exp: Add with_test_prefix to make test names unique. --- gdb/testsuite/ChangeLog | 5 +++ gdb/testsuite/gdb.python/py-explore.exp | 58 +++++++++++++------------ 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp index 6d27b5a6db8..1772dc0045b 100644 --- a/gdb/testsuite/gdb.python/py-explore.exp +++ b/gdb/testsuite/gdb.python/py-explore.exp @@ -446,33 +446,35 @@ gdb_test_multiple "explore type union ComplexUnion" "" { } } -gdb_test_multiple "explore type cu" "" { - -re "'cu' is of type 'union ComplexUnion'.*[compound_type_description $CU {union}].*$CU_fields_types.*" { - pass "explore type union ComplexUnion" - gdb_test_multiple "0" "explore type union ComplexStruct field 0" { - -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" { - pass "explore type union ComplexUnion field 0" - gdb_test_multiple "\0" "return to ComplexUnion from field 0" { - -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" { - pass "return to ComplexUnion from field 0" - } - } - } - } - gdb_test_multiple "1" "explore type union ComplexUnion field 1" { - -re ".*[child_array_type_description $CU_field_1 $SS].*" { - pass "explore type union ComplexUnion field 1" - gdb_test_multiple "\0" "return to ComplexUnion array" { - -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" { - pass "return to ComplexUnion from field 1" - } - } - } - } - gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" { - -re "$gdb_prompt" { - pass "return to GDB prompt from ComplexUnion type exploration" - } - } +with_test_prefix "using 'cu'" { + gdb_test_multiple "explore type cu" "" { + -re "'cu' is of type 'union ComplexUnion'.*[compound_type_description $CU {union}].*$CU_fields_types.*" { + pass "explore type union ComplexUnion" + gdb_test_multiple "0" "explore type union ComplexStruct field 0" { + -re ".*[child_compound_type_description $CU_field_0 $SS {struct/class}].*$SS_fields_types.*" { + pass "explore type union ComplexUnion field 0" + gdb_test_multiple "\0" "return to ComplexUnion from field 0" { + -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" { + pass "return to ComplexUnion from field 0" + } + } + } + } + gdb_test_multiple "1" "explore type union ComplexUnion field 1" { + -re ".*[child_array_type_description $CU_field_1 $SS].*" { + pass "explore type union ComplexUnion field 1" + gdb_test_multiple "\0" "return to ComplexUnion array" { + -re ".*[compound_type_description $CU {union}].*$CU_fields_types.*" { + pass "return to ComplexUnion from field 1" + } + } + } + } + gdb_test_multiple "\0" "return to GDB prompt from ComplexUnion type exploration" { + -re "$gdb_prompt" { + pass "return to GDB prompt from ComplexUnion type exploration" + } + } + } } } -- 2.25.4