From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59633 invoked by alias); 7 Dec 2015 09:07:07 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 59476 invoked by uid 89); 7 Dec 2015 09:07:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: heian.cn.fujitsu.com Received: from cn.fujitsu.com (HELO heian.cn.fujitsu.com) (59.151.112.132) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Dec 2015 09:07:05 +0000 Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 07 Dec 2015 17:06:41 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id A4908409257F for ; Mon, 7 Dec 2015 17:06:38 +0800 (CST) Received: from localhost.localdomain (10.167.226.48) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Mon, 7 Dec 2015 17:06:38 +0800 From: Zhou Wenjian To: Subject: [PATCH 3/3] add new case for white space Date: Mon, 07 Dec 2015 09:07:00 -0000 Message-ID: <1449479119-10817-3-git-send-email-zhouwj-fnst@cn.fujitsu.com> In-Reply-To: <1449479119-10817-1-git-send-email-zhouwj-fnst@cn.fujitsu.com> References: <1449479119-10817-1-git-send-email-zhouwj-fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner-ID: A4908409257F.A65E9 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: zhouwj-fnst@cn.fujitsu.com X-IsSubscribed: yes X-SW-Source: 2015-q4/txt/msg00239.txt.bz2 * testsuite/systemtap.base/whitespace.exp: new test case * testsuite/systemtap.base/whitespace.stp: new test file --- testsuite/systemtap.base/whitespace.exp | 13 +++++++++++++ testsuite/systemtap.base/whitespace.stp | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 testsuite/systemtap.base/whitespace.exp create mode 100644 testsuite/systemtap.base/whitespace.stp diff --git a/testsuite/systemtap.base/whitespace.exp b/testsuite/systemtap.base/whitespace.exp new file mode 100644 index 0000000..ee12594 --- /dev/null +++ b/testsuite/systemtap.base/whitespace.exp @@ -0,0 +1,13 @@ +# Check white space + +set test "whitespace" +if {![installtest_p]} { untested "$test"; return } + +foreach runtime [get_runtime_list] { + if {$runtime != ""} { + stap_run $srcdir/$subdir/$test.stp no_load ($all_pass_string){2} \ + --runtime=$runtime + } else { + stap_run $srcdir/$subdir/$test.stp no_load ($all_pass_string){2} + } +} diff --git a/testsuite/systemtap.base/whitespace.stp b/testsuite/systemtap.base/whitespace.stp new file mode 100644 index 0000000..9f06ce7 --- /dev/null +++ b/testsuite/systemtap.base/whitespace.stp @@ -0,0 +1,14 @@ +/* + * whitespace.stp + * + * Check white space + */ + + +probe begin +{ +println("systemtap starting probe"); println("systemtap ending probe"); println("systemtap test success") +; +println("systemtap test success") + exit() +} -- 1.8.3.1