Fix typo in t0003.
[paraslash.git] / t / t0003-writer-init-error-path.sh
1 #!/usr/bin/env bash
2
3 test_description='Check if alsa_init() failures are handled gracefully.
4
5 Older paraslash versions contained a bug which caused para_write and para_audiod
6 to abort if the alsa/oss device could not be opened. This test makes sure we
7 will not introduce the same bug again.'
8
9 . ${0%/*}/test-lib.sh
10
11 for i in alsa oss; do
12         test_require_objects "${i}_write"
13         missing_objects="$result"
14         if [[ -n "$missing_objects" ]]; then
15                 test_skip "$i" "missing object(s): $missing_objects"
16                 continue
17         fi
18         test_expect_failure "$i" "
19                 head -c 100 /dev/zero | $PARA_WRITE -w '$i -d /dev/non_existent'
20                 "
21 done
22 test_done