From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 06A173954419 for ; Mon, 8 Mar 2021 18:37:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 06A173954419 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-wr1-x42d.google.com with SMTP id b18so12540505wrn.6 for ; Mon, 08 Mar 2021 10:37:21 -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=ndAQf59nCKk5//exaVm8JyRaycMuDmALOAaPPX+vy3Q=; b=L/rju2G6ZQb01UfKKSenp3fc7/XPwdo87Tt+4xWfL56si/aJDL/JnBMg2pOnLiJYLy xMyge7Cva6QdfDlzKql3rq2gihuTTUCj/tlXrOUEYoJ89lyP5rezp5zIQdxQDBX1bXvZ PioPhf0CEW0lqCA0Ryus35OVdj8oBVYUqzTnApxtn00Nvi5GtLEq4gzZNgMzViPD2moa FU5x0GJDg4gLGQ5K8rrfGWESPE4LAkf6QZE54tv5Ag+VEqUoSZ+4TemPFG/PzriEedZp doAmzD/FVyY2BfCd5lWuLL8z3tqtfsDJK5mp++YX2MrGIqg93C/GDJDtK19AxyzM1aXZ a4Yw== 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=ndAQf59nCKk5//exaVm8JyRaycMuDmALOAaPPX+vy3Q=; b=Hi/mw71uiOW2mPZe+8e3N2xXed9MMmdQKYukc6J+xu79y8Lp5434n2bE4BxYLNouNx e6oTPE2Dt3w0lSh39Ide/1Y/gOiq+Vsmdk832+LpqrcoIRIfgUPgcycOn887h9+kE7Xs eNH8VYScMCn/xdHG9qV1gDnK0ZZqgTL121JE13Q8u9rqgfEns6duGxQlIuZGkdPl2ScI j0yZBQXOO2qggeZoXavoSk4RdFDtTCq1CDywHpFpuwBmeC4asD0Nworvjs+mtvbadsVK s7y6Qirtg6gxBGHD6jukeEA8rh8Xn9kzmvrDWWwXRbnTHV0MdaA5+HZsRfa5yKLk6Tzv Y6hg== X-Gm-Message-State: AOAM532r53z5alR6hcitwNlOrSSu7uO2L7KN5kbuGCm1QViiwXwlEMZ7 qSmNbGx9LNIZtDfuKgucgvEqA8ZfUY+ymA== X-Google-Smtp-Source: ABdhPJwGWt/fQ3tk0LRWNbmL78mRn5IyYgq2EoE1o6Y9/wl7B7nIEwTR/h1b9to4PpSF6PmmkDxBDw== X-Received: by 2002:adf:e4c7:: with SMTP id v7mr24251814wrm.245.1615228641021; Mon, 08 Mar 2021 10:37:21 -0800 (PST) Received: from localhost (host86-134-238-232.range86-134.btcentralplus.com. [86.134.238.232]) by smtp.gmail.com with ESMTPSA id s20sm206180wmj.36.2021.03.08.10.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 10:37:20 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 07/14] gdb/testsuite: make test names unique in gdb.python/py-block.exp Date: Mon, 8 Mar 2021 18:37:04 +0000 Message-Id: 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.9 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:23 -0000 Extend some test names to make them unique. gdb/testsuite/ChangeLog: * gdb.python/py-block.exp: Give tests unique names. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-block.exp | 18 +++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp index c9da474debc..fdb7c097e20 100644 --- a/gdb/testsuite/gdb.python/py-block.exp +++ b/gdb/testsuite/gdb.python/py-block.exp @@ -38,7 +38,8 @@ gdb_continue_to_breakpoint "Block break here." # Test initial innermost block. gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0 -gdb_py_test_silent_cmd "python block = frame.block()" "Get block" 0 +gdb_py_test_silent_cmd "python block = frame.block()" \ + "Get block, initial innermost block" 0 gdb_test "python print (block)" "" "check block not None" gdb_test "python print (block.function)" "None" "first anonymous block" gdb_test "python print (block.start)" "${decimal}" "check start not None" @@ -51,11 +52,14 @@ gdb_test "python print (block\[42\])" ".*TypeError: Expected a string.*" \ # Test global/static blocks gdb_py_test_silent_cmd "python frame = gdb.selected_frame()" "Get Frame" 0 -gdb_py_test_silent_cmd "python block = frame.block()" "Get block" 0 +gdb_py_test_silent_cmd "python block = frame.block()" \ + "Get block, frame.block" 0 gdb_test "python print (block.is_global)" "False" "not a global block" gdb_test "python print (block.is_static)" "False" "not a static block" -gdb_py_test_silent_cmd "python gblock = block.global_block" "Get block" 1 -gdb_py_test_silent_cmd "python sblock = block.static_block" "Get block" 1 +gdb_py_test_silent_cmd "python gblock = block.global_block" \ + "Get block, global_block" 1 +gdb_py_test_silent_cmd "python sblock = block.static_block" \ + "Get block, static_block" 1 gdb_test "python print (gblock.is_global)" "True" "is the global block" gdb_test "python print (sblock.is_static)" "True" "is the static block" @@ -84,9 +88,9 @@ gdb_py_test_silent_cmd "python block_iter = iter (block)" "Get Frame block" 0 gdb_test "python print (block.is_valid())" "True" \ "Check block validity" gdb_test "python print (block_iter.is_valid())" "True" \ - "Check block validity" + "Check block_iter validity" gdb_unload gdb_test "python print (block.is_valid())" "False" \ - "Check block validity" + "Check block validity after unload" gdb_test "python print (block_iter.is_valid())" "False" \ - "Check block validity" + "Check block_iter validity after unload" -- 2.25.4