diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bsd/type_w.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bsd/type_w.sh b/tests/bsd/type_w.sh index aec9cb1..3aa50d5 100644 --- a/tests/bsd/type_w.sh +++ b/tests/bsd/type_w.sh @@ -5,7 +5,11 @@ command -v newfs &>/dev/null || skip cd "$TEST" # Create a ramdisk -truncate -s1M img +if command -v truncate &>/dev/null; then + truncate -s1M img +else + dd if=/dev/zero of=img bs=1k count=1k +fi md=$(bfs_sudo mdconfig img) || skip defer bfs_sudo mdconfig -du "$md" |