testsuite/systemtap.string/strpos.exp
raw| 1 | set test "strpos" |
| 2 | set ::result_string {haystack="foo" needle="abcfoobad" strpos=-1 |
| 3 | haystack="abcfoobad" needle="foo" strpos=3 |
| 4 | haystack="foo" needle="foo" strpos=0 |
| 5 | haystack="foo" needle="" strpos=0 |
| 6 | haystack="" needle="foo" strpos=-1 |
| 7 | haystack="" needle="" strpos=0} |
| 8 | stap_run2 $srcdir/$subdir/$test.stp |