* [Bug testsuite/19234] New: user_string_n2_quoted() vs. user_string_n_quoted.exp
@ 2015-11-12 10:59 mcermak at redhat dot com
2015-11-12 15:09 ` [Bug testsuite/19234] " mcermak at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: mcermak at redhat dot com @ 2015-11-12 10:59 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=19234
Bug ID: 19234
Summary: user_string_n2_quoted() vs. user_string_n_quoted.exp
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
Assignee: systemtap at sourceware dot org
Reporter: mcermak at redhat dot com
Target Milestone: ---
Created attachment 8778
--> https://sourceware.org/bugzilla/attachment.cgi?id=8778&action=edit
proposed testcase patch
Commit bfd1c4ccc2 made testcase user_string_n_quoted.exp fail. The commit
introduces new behavior of user_string_n2_quoted(), still having the old
behavior available using --compatible=2.9 (using which the testcase passes
again, good).
The behaviour is as follows:
=======
7.2 S x86_64 # stap --compatible=2.9 -e 'probe syscall.write { if (pid() ==
target()) for (i=21; i>13; i--) printf("%d - %s\n", i,
user_string_n2_quoted(buf_uaddr, 99, i)) exit() }' -c 'echo this_is_a_test >
/dev/null'
21 - "this_is_a_test\n"
20 - "this_is_a_test\n"
19 - "this_is_a_test\n"
18 - "this_is_a_test\n"
17 - "this_is_a_te"...
16 - "this_is_a_t"...
15 - "this_is_a_"...
14 - "this_is_a"...
7.2 S x86_64 # stap -e 'probe syscall.write { if (pid() == target()) for
(i=21; i>13; i--) printf("%d - %s\n", i, user_string_n2_quoted(buf_uaddr, 99,
i)) exit() }' -c 'echo this_is_a_test > /dev/null'
21 - "this_is_a_test\n"
20 - "this_is_a_test\n"
19 - "this_is_a_test"...
18 - "this_is_a_tes"...
17 - "this_is_a_te"...
16 - "this_is_a_t"...
15 - "this_is_a_"...
14 - "this_is_a"...
7.2 S x86_64 #
=======
Using the old behavior there is no 'i' for which the retval would be
'"this_is_a_test"...' or '"this_is_a_tes"...'. From this perspective the new
behavior looks more reasonable. There are differences in how
user_string_n_quoted() and user_string_n2_quoted() understand the length of the
output string, but that make some sense too (tm). So I propose attached
testcase patch.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug testsuite/19234] user_string_n2_quoted() vs. user_string_n_quoted.exp
2015-11-12 10:59 [Bug testsuite/19234] New: user_string_n2_quoted() vs. user_string_n_quoted.exp mcermak at redhat dot com
@ 2015-11-12 15:09 ` mcermak at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: mcermak at redhat dot com @ 2015-11-12 15:09 UTC (permalink / raw)
To: systemtap
https://sourceware.org/bugzilla/show_bug.cgi?id=19234
Martin Cermak <mcermak at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Fixed in commit cf91ec23bf4fdd4de2718133905c532fb9c40f60.
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-12 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-12 10:59 [Bug testsuite/19234] New: user_string_n2_quoted() vs. user_string_n_quoted.exp mcermak at redhat dot com
2015-11-12 15:09 ` [Bug testsuite/19234] " mcermak at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).