testsuite/parseko/cmdline22.stp
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # Test a TMPDIR that is technically legal, but has "weird" characters. |
| 4 | # Anything that would trip up a shell or makefile is bad, including spaces. |
| 5 | |
| 6 | TMPDIR="/tmp/stap tmp here" |
| 7 | export TMPDIR |
| 8 | |
| 9 | mkdir "$TMPDIR" || exit 0 # "success" signals a problem for parseko |
| 10 | |
| 11 | stap $@ -p1 -e 'probe begin { exit() }' |
| 12 | RC=$? |
| 13 | |
| 14 | rmdir "$TMPDIR" || exit 0 |
| 15 | |
| 16 | exit $RC |