Commit 90e248ac authored by David Staessens's avatar David Staessens Committed by Commit Bot

media/gpu/test: Make Tast video decoder tests fail when video file is not found.

Currently the video_decode_accelerator_tests return '0' if the test failed to
even start because of missing video files or wrong parameters. This CL changes
the return value so the tests will be properly marked as 'failed' in these
cases.

TEST=ran new VDA (perf) tests on nocturne

BUG=879065

Change-Id: Ibd7fae645872c02415ee5a8dadf2cd082eb36939
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1551735
Commit-Queue: David Staessens <dstaessens@chromium.org>
Reviewed-by: default avatarAlexandre Courbot <acourbot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649717}
parent 78f52e5b
......@@ -196,7 +196,7 @@ int main(int argc, char** argv) {
media::test::VideoPlayerTestEnvironment::Create(
video_path, video_metadata_path, false, false);
if (!test_environment)
return 0;
return EXIT_FAILURE;
media::test::g_env = static_cast<media::test::VideoPlayerTestEnvironment*>(
testing::AddGlobalTestEnvironment(test_environment));
......
......@@ -307,7 +307,7 @@ int main(int argc, char** argv) {
} else {
std::cout << "unknown option: --" << it->first << "\n"
<< media::test::usage_msg;
return 0;
return EXIT_FAILURE;
}
}
......@@ -316,7 +316,7 @@ int main(int argc, char** argv) {
media::test::VideoPlayerTestEnvironment::Create(
video_path, video_metadata_path, enable_validator, output_frames);
if (!test_environment)
return 0;
return EXIT_FAILURE;
media::test::g_env = static_cast<media::test::VideoPlayerTestEnvironment*>(
testing::AddGlobalTestEnvironment(test_environment));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment