summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-21 21:33:24 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-21 21:33:24 +0200
commit31a0ad65c838d0530b321c75c5b328828daa71ac (patch)
treec38af9df91d8b6459d92a57d7e3e07d814a9dcbe
parenta1e1eec32d27dec37acbc1d65696304abac7ff32 (diff)
downloadsystemtap-steved-31a0ad65c838d0530b321c75c5b328828daa71ac.tar.gz
systemtap-steved-31a0ad65c838d0530b321c75c5b328828daa71ac.tar.xz
systemtap-steved-31a0ad65c838d0530b321c75c5b328828daa71ac.zip
Set MAXSTRINGLEN to 133 for uprobes_ustack.exp test on 64 bit.
Needs extra space since on 64bit the last ubacktrace string is 7 entries * (16 hex + 2 for 0x + 1 space) = 133 chars. Default MAXSTRINGLEN is 128 chars. * testsuite/systemtap.base/uprobes_ustack.exp: Add -DMAXSTRINGLEN.
-rw-r--r--testsuite/systemtap.base/uprobes_ustack.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/uprobes_ustack.exp b/testsuite/systemtap.base/uprobes_ustack.exp
index f085fc16..bfc435e9 100644
--- a/testsuite/systemtap.base/uprobes_ustack.exp
+++ b/testsuite/systemtap.base/uprobes_ustack.exp
@@ -71,7 +71,10 @@ set main 0
set main_func 0
set lib_main 0
set lib_func 0
-spawn stap $srcdir/$subdir/$test.stp -c $testexe
+# Needs extra space since on 64bit the last ubacktrace string is
+# 7 entries * (16 hex + 2 for 0x + 1 space) = 133 chars.
+# Default MAXSTRINGLEN is 128 chars.
+spawn stap -DMAXSTRINGLEN=133 $srcdir/$subdir/$test.stp -c $testexe
wait
expect {