doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/global_var_kernel.exp
raw| 1 | set test "global_var_kernel" |
| 2 | set testpath "$srcdir/$subdir" |
| 3 | |
| 4 | # Check the righ "kernel/time.c" is picked up (both in the syscall probe |
| 5 | # context and the stap function context. |
| 6 | set output_string "sys_tz = {.tz_minuteswest=-?\\d+, .tz_dsttime=\\d+}\r\nf: {.tz_minuteswest=-?\\d+, .tz_dsttime=\\d+}\r\n" |
| 7 | |
| 8 | # Only run on make installcheck |
| 9 | if {! [installtest_p]} { untested "$test"; return } |
| 10 | |
| 11 | stap_run ${test} no_load $output_string ${testpath}/${test}.stp -c {cat /dev/null} |