Disabled flaky test on Linux, added disable-on-platform macros, fixed \n's
BUG=1155 Review URL: https://webrtc-codereview.appspot.com/972006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3178 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
c4590580e8
commit
8d334d387b
@ -39,6 +39,25 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
// Helper macros for platform disables. These can be chained.
|
||||
#ifdef WEBRTC_LINUX
|
||||
#define DISABLED_ON_LINUX(test) DISABLED_##test
|
||||
#else
|
||||
#define DISABLED_ON_LINUX(test) test
|
||||
#endif
|
||||
|
||||
#ifdef WEBRTC_MAC
|
||||
#define DISABLED_ON_MAC(test) DISABLED_##test
|
||||
#else
|
||||
#define DISABLED_ON_MAC(test) test
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define DISABLED_ON_WIN(test) DISABLED_##test
|
||||
#else
|
||||
#define DISABLED_ON_WIN(test) test
|
||||
#endif
|
||||
|
||||
// This convenient fixture sets up all voice engine interfaces automatically for
|
||||
// use by testing subclasses. It allocates each interface and releases it once
|
||||
// which means that if a tests allocates additional interfaces from the voice
|
||||
|
@ -27,7 +27,7 @@ class FileTest : public AfterStreamingFixture {
|
||||
|
||||
TEST_F(FileTest, ManualRecordToFileForThreeSecondsAndPlayback) {
|
||||
if (!FLAGS_include_timing_dependent_tests) {
|
||||
TEST_LOG("Skipping test - running in slow execution environment.../n");
|
||||
TEST_LOG("Skipping test - running in slow execution environment...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -143,9 +143,11 @@ TEST_F(NetworkTest, DoesNotCallDeRegisteredObserver) {
|
||||
Sleep(1500);
|
||||
}
|
||||
|
||||
TEST_F(NetworkTest, DeadOrAliveObserverSeesAliveMessagesIfEnabled) {
|
||||
// TODO(phoglund): flaky on Linux
|
||||
TEST_F(NetworkTest,
|
||||
DISABLED_ON_LINUX(DeadOrAliveObserverSeesAliveMessagesIfEnabled)) {
|
||||
if (!FLAGS_include_timing_dependent_tests) {
|
||||
TEST_LOG("Skipping test - running in slow execution environment.../n");
|
||||
TEST_LOG("Skipping test - running in slow execution environment...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -165,7 +167,7 @@ TEST_F(NetworkTest, DeadOrAliveObserverSeesAliveMessagesIfEnabled) {
|
||||
|
||||
TEST_F(NetworkTest, DeadOrAliveObserverSeesDeadMessagesIfEnabled) {
|
||||
if (!FLAGS_include_timing_dependent_tests) {
|
||||
TEST_LOG("Skipping test - running in slow execution environment.../n");
|
||||
TEST_LOG("Skipping test - running in slow execution environment...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ void RtcpAppHandler::Reset() {
|
||||
|
||||
TEST_F(RtpRtcpTest, RemoteRtcpCnameHasPropagatedToRemoteSide) {
|
||||
if (!FLAGS_include_timing_dependent_tests) {
|
||||
TEST_LOG("Skipping test - running in slow execution environment.../n");
|
||||
TEST_LOG("Skipping test - running in slow execution environment...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -10,12 +10,6 @@
|
||||
|
||||
#include "after_streaming_fixture.h"
|
||||
|
||||
#ifdef WEBRTC_LINUX
|
||||
#define DISABLED_ON_LINUX(test) DISABLED_##test
|
||||
#else
|
||||
#define DISABLED_ON_LINUX(test) test
|
||||
#endif
|
||||
|
||||
class VolumeTest : public AfterStreamingFixture {
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user