diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/include.rc | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc index 76b81875bbc..139bc03ac8c 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -482,6 +482,12 @@ function cleanup()                  done                  ;;          NetBSD) +                # cleanup loopback device with unmounted backing store +                for vnd in /dev/vnd* ; do +                        vnconfig -l ${vnd} 2>&1 | \ +                            grep -q 'Bad file descriptor' && vnconfig -u ${vnd} +                done +                  vnd=`vnconfig -l | \                       awk '!/not in use/{printf("%s%s:%d ", $1, $2, $5);}'`                  for l in ${vnd} ; do  | 
