From 7692239b183688358ea67cb84c2fcb7f61696981 Mon Sep 17 00:00:00 2001 From: "andrew@webrtc.org" Date: Fri, 7 Sep 2012 05:18:48 +0000 Subject: [PATCH] Work around bot filesystem flakiness in MixingTest. TBR=braveyao Review URL: https://webrtc-codereview.appspot.com/780004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2716 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/voice_engine/test/auto_test/standard/mixing_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/voice_engine/test/auto_test/standard/mixing_test.cc b/src/voice_engine/test/auto_test/standard/mixing_test.cc index 565d8b60e7..6a90c07e68 100644 --- a/src/voice_engine/test/auto_test/standard/mixing_test.cc +++ b/src/voice_engine/test/auto_test/standard/mixing_test.cc @@ -112,8 +112,10 @@ class MixingTest : public AfterInitializationFixture { EXPECT_GE(output_value, min_output_value); } // Ensure the recording length is close to the duration of the test. + // We have to use a relaxed tolerance here due to filesystem flakiness on + // the bots. ASSERT_GE((samples_read * 1000.0) / kSampleRateHz, - 0.9 * (kTestDurationMs - kSkipOutputMs)); + 0.7 * (kTestDurationMs - kSkipOutputMs)); // Ensure we read the entire file. ASSERT_NE(0, feof(output_file)); ASSERT_EQ(0, fclose(output_file));