set test "optionalprobe"
spawn stap -u -p2 -w $srcdir/$subdir/$test.stp
expect {
    -timeout 120
    -re "# probes\r\n" { exp_continue }
    -re "^begin" { pass $test }
    eof { fail $test }
    timeout { fail "$test unexpected timeout" }
}
catch {close}; catch {wait}
