From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23396 invoked by alias); 25 Aug 2011 06:41:39 -0000 Received: (qmail 23383 invoked by uid 22791); 25 Aug 2011 06:41:38 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Aug 2011 06:41:22 +0000 From: "phan at redhat dot com" To: systemtap@sourceware.org Subject: [Bug testsuite/13133] New: sdt_misc.exp's wildcard criterion should be changed Date: Thu, 25 Aug 2011 06:41:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: testsuite X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: phan at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2011-q3/txt/msg00202.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13133 Bug #: 13133 Summary: sdt_misc.exp's wildcard criterion should be changed Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: testsuite AssignedTo: systemtap@sourceware.org ReportedBy: phan@redhat.com Classification: Unclassified Created attachment 5911 --> http://sourceware.org/bugzilla/attachment.cgi?id=5911 the patch On i386 and x86_64 system, sdt_misc.exp fails with those messages: i386: FAIL: sdt_misc wildcard (40) V1_uprobe FAIL: sdt_misc wildcard (40) V2_kprobe FAIL: sdt_misc wildcard (40) V2_uprobe FAIL: sdt_misc wildcard (40) V3_uprobe x86_64: FAIL: sdt_misc wildcard (48) V1_uprobe FAIL: sdt_misc wildcard (48) V2_kprobe FAIL: sdt_misc wildcard (48) V2_uprobe FAIL: sdt_misc wildcard (48) V3_uprobe I believe this because three variables, arr_struct, primary_colors_var, incomplete_struct_type, has been changed to conditional defined in systemtap.base/sdt_types.c: 92 # if !defined(__cplusplus) || \ 93 ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) && __GXX_EXPERIMENTAL_CXX0X__) 94 struct { 95 int int_var; 96 } arr_struct [2] = {{1},{2}}; 97 98 enum { 99 red = 0, 100 green = 1, 101 blue = 2 102 } primary_colors_var = green; 103 104 struct opaque_struct *incomplete_struct_type = 0; 105 # endi The criterion should be changed to something like this: diff --git a/testsuite/systemtap.base/sdt_misc.exp b/testsuite/systemtap.base/sdt_misc.exp index e5b2c80..0ffbfa0 100644 --- a/testsuite/systemtap.base/sdt_misc.exp +++ b/testsuite/systemtap.base/sdt_misc.exp @@ -389,7 +389,7 @@ expect { catch {close}; catch {wait} -if { $ok == 51 || ($ok == 43 && [regexp "^(i.86)$" $::tcl_platform(machine)])} { +if { $ok == 51 || $ok == 48 || (($ok == 43 || $ok == 40 ) && [regexp "^(i.86)$" $::tcl_platform(machine)])} { pass "$test wildcard $pbtype_mssg" } else { fail "$test wildcard ($ok) $pbtype_mssg" -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.