From patchwork Wed Jul 29 21:01:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 7922 Received: (qmail 41239 invoked by alias); 29 Jul 2015 21:01:50 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 41230 invoked by uid 89); 29 Jul 2015 21:01:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_05, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: mail-qk0-f178.google.com Received: from mail-qk0-f178.google.com (HELO mail-qk0-f178.google.com) (209.85.220.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 29 Jul 2015 21:01:49 +0000 Received: by qkbm65 with SMTP id m65so11419107qkb.2 for ; Wed, 29 Jul 2015 14:01:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OaCT6HALloRnRsfNtXy9N7u9wzS+cL+XLOoSMGDHLOc=; b=i0mNZfTTzw/i838ykhVlmDkLqMBXMd8kJCmZO4OaFTutXXAJLqyZCZ3pMsnDrKOv9x RcTpaXHBx7YvaNjVSo3BZak8GitRz+yqD49cRsDH46GlLeZz/+HbEnfvLhVLQmV9JjAE Ac+lT1iRfcKch+57UcgFmL8tVnylqN+E/6QYok5fmRRLoGFdwpwUvN4qPhldWVST3wvK JTHdp89zxCIT4zvJRdQOMnOyK8dwK9lmaJ88UdrHh7bPAW++hqf+arSgR56p7WbEgxfx ZyaHQN5+JX1GwbUc8+C/sIHvwhA5zJNbhuDZKWzAaW9GrZSR1ukZaoRu0fs6Ml8LprAf BJ6g== X-Gm-Message-State: ALoCoQkgUzdM5LR5jwl3hwHirEqzwDrZdmapCodQn0Xw4n5Mjulrlv3MS3hfpS8lJ5rzVgpC66mw X-Received: by 10.55.56.73 with SMTP id f70mr55345558qka.78.1438203707126; Wed, 29 Jul 2015 14:01:47 -0700 (PDT) Received: from localhost.localdomain (ool-4353acd8.dyn.optonline.net. [67.83.172.216]) by smtp.gmail.com with ESMTPSA id b93sm9099213qgb.49.2015.07.29.14.01.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jul 2015 14:01:46 -0700 (PDT) From: Patrick Palka To: gdb-patches@sourceware.org Cc: Patrick Palka Subject: [PATCH] [OBV] batch-preserve-term-settings.exp: use send_quit_command some more Date: Wed, 29 Jul 2015 17:01:41 -0400 Message-Id: <1438203701-29803-1-git-send-email-patrick@parcs.ath.cx> Just a slight cleanup. Committed as obvious. gdb/testsuite/ChangeLog: * gdb.base/batch-preserve-term-settings.exp (test_terminal_settings_preserved_after_cli_exit): Use send_quit_command. --- .../gdb.base/batch-preserve-term-settings.exp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp index a4c8796..90f4057 100644 --- a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp +++ b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp @@ -251,23 +251,7 @@ proc test_terminal_settings_preserved_after_cli_exit { cmds } { } } - set test "quit gdb" - send_gdb "quit\n" - gdb_expect { - -re "(y or n)" { - send_gdb "y\n" - exp_continue - } - -re ".*$shell_prompt_re$" { - pass $test - } - timeout { - fail "$test (timeout)" - } - eof { - fail "$test (eof)" - } - } + send_quit_command "quit gdb" set test "terminal settings preserved" if $stty_supported {