summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.string
Commit message (Collapse)AuthorAgeFilesLines
* PR11277: Use consistent octal in quoted stringsJosh Stone2010-02-162-23/+23
| | | | | | | | | | Previously, our octal escapes used variable lengths, which can lead to ambiguities. Also, 8-bit characters would only output the least digit. * runtime/string.c (_stp_text_str): Always output 3-digit octal escapes, and handle 8-bit chars more gracefully. * testsuite/systemtap.string/text_str.stp: Include an 8-bit character. * testsuite/systemtap.string/text_str.exp: Above + expect 3-digit octal.
* PR10486 Raise default MAXSTRINGLEN.Mark Wielaard2009-08-071-1/+3
| | | | | | | | * translate.cxx (translate_pass): Raise MAXSTRINGLEN to 256 for 32bit arches and to 512 for 64bit arches. * testsuite/systemtap.context/backtrace.tcl: Don't set MAXSTRINGLEN. * testsuite/systemtap.exelib/ustack.tcl: Likewise. * testsuite/systemtap.string/str_replace.exp: Explicitly set MAXSTRINGLEN.
* Testcase For str_replace()Varun Chandramohan2009-06-222-0/+39
| | | | | | | | | | | | This patch adds the test case needed for this function. I have added few tests. If required more can be added in future. As discussed in previous version, the testcase patch has been reverted to the original as the str_replace() functionality has changed wrt to error handle. Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com> Signed-off-by: Josh Stone <jistone@redhat.com>
* Refactor common code in the tokenize testJosh Stone2009-06-172-54/+20
|
* Fix tokenize function and test.Przemyslaw Pawelczyk2009-06-172-29/+62
| | | | | | | | | | | | | | | | | Previous implementation was error-prone, because allowed returning empty tokens (mimiced strsep()), which is fine if there is a NULL semantic. Unfortunately SystemTap doesn't provide it in scripts and has only blank string (""), therefore testing against it was misleading. The solution is to return only non-empty tokens (mimic strtok()). * tapset/string.stp: Fix tokenize. * testsuite/systemtap.string/tokenize.stp: Improve and add case with more than one delimiter in the delim string. * testsuite/systemtap.string/tokenize.exp: Ditto. * stapfuncs.3stap.in: Update tokenize description. * doc/langref.tex: Ditto. Signed-off-by: Josh Stone <jistone@redhat.com>
* Make stap_run2 count exact number of lines.Mark Wielaard2009-03-096-12/+6
| | | | | * testsuite/lib/stap_run2.exp: Compare found and expected number of lines. * testsuite/systemtap.*/*.exp (result_string): Make number of lines exact.
* PR6538: more testsuite tweaks for read-only warningsFrank Ch. Eigler2008-05-211-1/+0
|
* 2007-06-20 Martin Hunt <hunt@redhat.com>hunt2007-06-204-0/+61
| | | | | * systemtap.string/dot.exp: New test. * systemtap.string/sprint.exp: New test.
* Added new string functions tokenize() and strtol().mmason2007-01-234-0/+116
|
* 2007-01-22 Frank Ch. Eigler <fche@redhat.com>fche2007-01-224-4/+0
| | | | | | | * config/unix.exp: New file as a master load_lib repository. * */*.exp: Removed load_lib calls. * parseko/cmdline01.stp: Swallow expected stap ERROR: message. * systemtap.syscall/syscall.exp: Added installmode_p checks.
* New tests for string functions.hunt2006-08-218-0/+260