File: task_dentry_path.exp

package info (click to toggle)
systemtap 3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 32,860 kB
  • ctags: 12,513
  • sloc: cpp: 58,610; ansic: 58,189; exp: 37,322; sh: 10,633; xml: 7,771; perl: 2,252; python: 2,066; tcl: 1,305; makefile: 969; lisp: 105; java: 100; awk: 94; asm: 91; sed: 16
file content (20 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This testcase tests the fix for PR16991 - infinite loop in
# task_dentry_path. When task_dentry_path hit a dentry from an
# unmounted synthentic filesystem, it would go into an infinite loop
# (until killed by MAXACTION).

set test "task_dentry_path"

# Only run on make installcheck
if {! [installtest_p]} { untested "$test"; return }

spawn stap $srcdir/$subdir/$test.stp -c "sh $srcdir/$subdir/$test.sh"
set ok 0
expect {
    -timeout 150
    -re {ERROR.*MAXACTION} { incr ok; exp_continue }
    timeout { fail "$test (timeout)" }
    eof { }
}
catch {close}; catch {wait}
if {$ok == 1} { fail "$test ($ok)" } { pass "$test ($ok)" }