diff options
author | marpan@webrtc.org <marpan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-11-06 20:59:29 +0000 |
---|---|---|
committer | marpan@webrtc.org <marpan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-11-06 20:59:29 +0000 |
commit | b4d7835dd2098d07f9b3d45ab4761d0ea2f75c23 (patch) | |
tree | 437b4cd03ec41d74ed5b8e0a4ea37fe3eca694cc | |
parent | 626d764779bbc1917654daa7b91f8271f5103790 (diff) | |
download | webrtc-b4d7835dd2098d07f9b3d45ab4761d0ea2f75c23.tar.gz |
Fix for video_processor_intergration_tests to run in parallel.
BUG=2601.
R=pbos@webrtc.org, stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/3519004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5091 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r-- | modules/video_coding/codecs/test/videoprocessor_integrationtest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc b/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc index c24f8f6e..747557fd 100644 --- a/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc +++ b/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc @@ -156,8 +156,7 @@ class VideoProcessorIntegrationTest: public testing::Test { // Setup the TestConfig struct for processing of a clip in CIF resolution. config_.input_filename = webrtc::test::ResourcePath("foreman_cif", "yuv"); - config_.output_filename = webrtc::test::OutputPath() + - "foreman_cif_short_video_codecs_test_framework_integrationtests.yuv"; + config_.output_filename = tmpnam(NULL); config_.frame_length_in_bytes = CalcBufferSize(kI420, kCIFWidth, kCIFHeight); config_.verbose = false; @@ -495,6 +494,9 @@ class VideoProcessorIntegrationTest: public testing::Test { EXPECT_GT(psnr_result.min, quality_metrics.minimum_min_psnr); EXPECT_GT(ssim_result.average, quality_metrics.minimum_avg_ssim); EXPECT_GT(ssim_result.min, quality_metrics.minimum_min_ssim); + if (!remove(config_.output_filename.c_str())) { + fprintf(stderr, "Failed to remove temporary file!"); + } } }; |