diff options
author | Dave Brolley <brolley@redhat.com> | 2009-05-22 14:08:00 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-05-22 14:08:00 -0400 |
commit | c5e0f4ba999fac089cbec076549cb9cd14cd58ed (patch) | |
tree | b4ef9eb1fd943909c77d5f3d85379f4fd4ae2c01 /testsuite/systemtap.base/gtod_init.exp | |
parent | d92fe9b3bfab353e5e727d8580a125bbd4fdd27a (diff) | |
parent | 1208cc21f63fff917e7817487d727d4cbe12d0ea (diff) | |
download | systemtap-steved-c5e0f4ba999fac089cbec076549cb9cd14cd58ed.tar.gz systemtap-steved-c5e0f4ba999fac089cbec076549cb9cd14cd58ed.tar.xz systemtap-steved-c5e0f4ba999fac089cbec076549cb9cd14cd58ed.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.base/gtod_init.exp')
-rw-r--r-- | testsuite/systemtap.base/gtod_init.exp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/testsuite/systemtap.base/gtod_init.exp b/testsuite/systemtap.base/gtod_init.exp deleted file mode 100644 index 48616b1f..00000000 --- a/testsuite/systemtap.base/gtod_init.exp +++ /dev/null @@ -1,29 +0,0 @@ -# test for checking initialization of the time subsystem -set test "gtod_init" - -# check that init and kill are both present with a gettimeofday -set time_init 0 -set time_kill 0 -spawn stap -p2 -e {probe begin { println(gettimeofday_s()) }} -expect { - -timeout 120 - -re {\n_gettimeofday_init:} { incr time_init; exp_continue } - -re {\n_gettimeofday_kill:} { incr time_kill; exp_continue } - timeout { fail "$test (timeout)" } - eof { - if {$time_init == 1} { pass "$test (init)" } { fail "$test (init $time_init)" } - if {$time_kill == 1} { pass "$test (kill)" } { fail "$test (kill $time_kill)" } - } -} -wait - -# check that init and kill are both NOT present without a gettimeofday -spawn stap -p2 -e {probe begin { println(get_cycles()) }} -expect { - -timeout 120 - -re {\n_gettimeofday_init:} { fail "$test (bad init)" } - -re {\n_gettimeofday_kill:} { fail "$test (bad kill)" } - timeout { fail "$test (timeout)" } - eof { pass "$test (no init/kill)" } -} -wait |