Fix cmykjpeg test to check if file was found.

git-svn-id: http://skia.googlecode.com/svn/trunk@9314 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2013-05-29 14:53:48 +00:00
parent 6cab1a4b6a
commit dc8e6e8503

View File

@ -34,6 +34,11 @@ protected:
filename.append("CMYK.jpg");
SkFILEStream stream(filename.c_str());
if (!stream.isValid()) {
SkDebugf("Could not find CMYK.jpg, please set --resourcePath correctly.\n");
return;
}
SkImageDecoder* codec = SkImageDecoder::Factory(&stream);
if (codec) {
stream.rewind();