summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-06-06 17:12:29 +0100
committerMans Rullgard <mans@mansr.com>2012-06-07 11:28:39 +0100
commitd0e9415d234f701bed8837f4e315131ea4e84482 (patch)
treeba27266099df653546bc8efc7e7e132857e2a393 /tests/Makefile
parentecf79c4d3e8baaf2f303278ef81db6f8407656bc (diff)
fate: avoid freopen(NULL) in videogen/rotozoom
A number of systems do not implement freopen() with a NULL filename correctly. This changes these programs to output individual images if opening a named output argument as a file fails, in this case assuming it is a directory. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 5ed1e5eefb..01ff711a37 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -16,10 +16,10 @@ tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
$(M)./$< $@ $(subst -, ,$*)
tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
- $(M)$< >$@
+ $(M)$< $@
tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
- $(M)$< $(SRC_PATH)/tests/lena.pnm >$@
+ $(M)$< $(SRC_PATH)/tests/lena.pnm $@
tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN