Disable API tests on ALSA since the tests don't work for all the alsa devices.

Review URL: http://webrtc-codereview.appspot.com/317004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1147 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
xians@webrtc.org 2011-12-09 14:05:29 +00:00
parent 6198624815
commit 0744ee563d
2 changed files with 12 additions and 1 deletions

View File

@ -94,7 +94,7 @@ AudioDeviceLinuxALSA::AudioDeviceLinuxALSA(const WebRtc_Word32 id) :
_recordingFramesLeft(0),
_playoutFramesLeft(0),
_playbackBufferSize(0),
_playBufType(AudioDeviceModule::kAdaptiveBufferSize),
_playBufType(AudioDeviceModule::kFixedBufferSize),
_initialized(false),
_recording(false),
_playing(false),

View File

@ -338,6 +338,17 @@ int api_test()
TEST_LOG("Version: %s\n\n", version);
AudioDeviceModule::AudioLayer audioLayer =
AudioDeviceModule::kPlatformDefaultAudio;
TEST(audioDevice->ActiveAudioLayer(&audioLayer) == 0);
if (audioLayer == AudioDeviceModule::kLinuxAlsaAudio) {
TEST_LOG("API Test is not available on ALSA. \n");
processThread->DeRegisterModule(audioDevice);
TEST(audioDevice->Terminate() == 0);
TEST(audioDevice->Release() == 0);
return 0;
}
TEST_LOG("Testing...\n\n");
// =====================