2009-07-19 14:48:55 +02:00
|
|
|
proc setup {} {
|
|
|
|
save_env
|
2010-06-18 17:21:38 +02:00
|
|
|
}
|
2009-07-19 14:48:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
proc teardown {} {
|
|
|
|
assert_env_unmodified
|
2010-06-18 17:21:38 +02:00
|
|
|
}
|
2009-07-19 14:48:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
setup
|
|
|
|
|
|
|
|
|
2010-04-26 22:59:15 +03:00
|
|
|
if {[catch {eval exec {kldstat | grep "\.ko$"}}] == 0} {
|
|
|
|
assert_complete_any "kldunload "
|
|
|
|
} else {
|
|
|
|
assert_no_complete "kldunload "
|
|
|
|
}
|
2009-07-19 14:48:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
|
|
|
|
|
|
teardown
|