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
This commit is contained in:
andrew@webrtc.org
2012-09-07 05:18:48 +00:00
parent f3b65dbfe8
commit 7692239b18

View File

@ -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));