From bde3056567cec1d49c42e8f168b6de369d653ee2 Mon Sep 17 00:00:00 2001 From: "marpan@webrtc.org" Date: Wed, 6 Nov 2013 20:59:29 +0000 Subject: [PATCH] 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@5091 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../codecs/test/videoprocessor_integrationtest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc b/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc index c24f8f6eaa..747557fdf9 100644 --- a/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc +++ b/webrtc/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!"); + } } };