summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2015-02-24 18:04:44 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2015-02-24 18:32:07 +1100
commit1ddeb2640eb9f6765f778d94bb0ad9ff633dae16 (patch)
tree6092b084fa0ad1731e055ecce33d24bda3d2e5d8 /test
parent29db3fbf1c53579e8accd87c3f45088beaeff42c (diff)
downloadflac-1ddeb2640eb9f6765f778d94bb0ad9ff633dae16.tar.gz
test/test_flac.sh : Make it work for 'make distcheck'.
An output file was being set to read only and hence could not be overwritten by a later test. Not sure why this only affected the 'make distcheck' target.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_flac.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_flac.sh b/test/test_flac.sh
index 1b16a879..a2f9b278 100755
--- a/test/test_flac.sh
+++ b/test/test_flac.sh
@@ -1167,6 +1167,8 @@ flac2flac ()
args="$3"
expect="$case-expect.meta"
echo -n "$2... "
+ # The 'make distcheck' target needs this.
+ chmod u+w $file
run_flac -f -o out.flac $args $file || die "ERROR encoding FLAC file"
run_metaflac --list out.flac | filter > out.meta || die "ERROR listing metadata of output FLAC file"
diff -q -w $expect out.meta 2>/dev/null || die "ERROR: metadata does not match expected $expect"