]> granicus.if.org Git - libvpx/commit
Rework y4mwrite test to pass google3 tests
authorDeb Mukherjee <debargha@google.com>
Mon, 11 Aug 2014 20:44:27 +0000 (13:44 -0700)
committerDeb Mukherjee <debargha@google.com>
Tue, 12 Aug 2014 23:15:26 +0000 (16:15 -0700)
commita4635138438c9618071dffa3baa71f363dff12bf
tree4dcd5c4a0a951055c9297e4f12ef2f04c49c7307
parent5b63c2797a50a6a007a9b20377b071cd0aa6d702
Rework y4mwrite test to pass google3 tests

Reverts to using tmpfile() for non-Windows platforms. On google3
the test directory does not have write permissions, and hence the
Y4mWriteTest fails. This patch fixes the issue.
On Windows, a temporary file is created in the temp directory
that has write permissions.

The tests pass on linux, mingw, and MS visual studio.

Change-Id: Ibada1d80e25d8b8e5b6a9d3d597533674bd9024c
test/video_source.h
test/y4m_test.cc