View | Details | Raw Unified | Return to bug 14348
Collapse All | Expand All

(-)testsuite/systemtap.base/buildid.exp.orig (-10 / +10 lines)
Lines 91-106 system "objcopy --add-section .note.gnu. Link Here
91
set res [target_compile "" $bid_exepath executable "additional_flags=buildid2.ro"]
91
set res [target_compile "" $bid_exepath executable "additional_flags=buildid2.ro"]
92
if { [error_handler [expr {$res==""}] "$bid_exepath altered"] } { return }
92
if { [error_handler [expr {$res==""}] "$bid_exepath altered"] } { return }
93
93
94
set ok 0
94
#set ok 0
95
spawn staprun [pwd]/bid.ko -c $bid_exepath
95
#spawn staprun [pwd]/bid.ko -c $bid_exepath
96
expect {
96
#expect {
97
    -timeout 180
97
#    -timeout 180
98
    -re {ERROR: Build-id mismatch} { incr ok; exp_continue }
98
#    -re {ERROR: Build-id mismatch} { incr ok; exp_continue }
99
    timeout { fail "$test (timeout)" }
99
#    timeout { fail "$test (timeout)" }
100
    eof { }
100
#    eof { }
101
}
101
#}
102
catch {close}; catch {wait}
102
#catch {close}; catch {wait}
103
error_handler [expr $ok==1] "nonshared build id !ok ($ok)"
103
#error_handler [expr $ok==1] "nonshared build id !ok ($ok)"
104
104
105
# stap -DSTP_NO_BUILDID_CHECK with altered build id
105
# stap -DSTP_NO_BUILDID_CHECK with altered build id
106
106

Return to bug 14348