]> sourceware.org Git - systemtap.git/blame - testsuite/systemtap.base/cxxclass.exp
Add -DSTAP_SDT_ARG_CONSTRAINT
[systemtap.git] / testsuite / systemtap.base / cxxclass.exp
CommitLineData
08b22cd5
MW
1set test "cxxclass"
2set ::result_string {main_enter
3call: 64
4cons call: 64
5meth call: 64 24
6dest call: 42
7call2: 24
8cons call2: 24
9meth call2: 24 40
10dest call2: 42
11main_exit}
12
13set test_flags "additional_flags=-g"
14set test_flags "$test_flags additional_flags=-O2"
bf4ac953 15set test_flags "$test_flags [sdt_includes]"
08b22cd5 16set test_flags "$test_flags compiler=g++"
710a2a45
SC
17# ppc64 needs a more restrictive constraint for the probe args
18if {[regexp "^(x86_64|i.86)$" $::tcl_platform(machine)] == 0} {
19set test_flags "$test_flags additional_flags=-DSTAP_SDT_ARG_CONSTRAINT=nr"
20}
08b22cd5
MW
21
22set res [target_compile $srcdir/$subdir/$test.cxx $test.exe executable "$test_flags"]
23if { $res != "" } {
24 verbose "target_compile failed: $res" 2
25 fail "compiling $test.c"
26 untested "$test.c compile"
27 continue
28} else {
29 pass "$test.c compile"
30}
31
32if {[installtest_p] && [uprobes_p]} {
8aabf152 33 stap_run3 "$test" -w $srcdir/$subdir/$test.stp $test.exe -c ./$test.exe
08b22cd5
MW
34} else {
35 untested "$test"
36}
37catch {exec rm -f $test.exe}
This page took 0.063272 seconds and 5 git commands to generate.