From 214bb8455076a403ec5fd5995ae100b195b26f7c Mon Sep 17 00:00:00 2001 From: "henrika@google.com" Date: Thu, 7 Jul 2011 15:08:35 +0000 Subject: [PATCH] Ensures that test files are read from new test/data folder for Mac OS X as well. git-svn-id: http://webrtc.googlecode.com/svn/trunk@179 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/voice_engine/main/test/auto_test/voe_standard_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/voice_engine/main/test/auto_test/voe_standard_test.cc b/src/voice_engine/main/test/auto_test/voe_standard_test.cc index 13953671ab..3c6ee4efa7 100644 --- a/src/voice_engine/main/test/auto_test/voe_standard_test.cc +++ b/src/voice_engine/main/test/auto_test/voe_standard_test.cc @@ -147,9 +147,13 @@ const char* micFile = "/sdcard/audio_long16.pcm"; // File path is relative to the location of 'voice_engine.gyp'. const char* micFile = "../test/data/voice_engine/audio_long16.pcm"; #elif defined(WEBRTC_LINUX) +// Assumes launch from command line: $ ./out//audio_device_test_func const char* micFile = "./test/data/voice_engine/audio_long16.pcm"; #elif (defined(WEBRTC_MAC_INTEL) || defined(WEBRTC_MAC)) +// Assumes that the working directory in Xcode is set to /xcodebuild/. +const char* micFile = "../../test/data/voice_engine/audio_long16.pcm"; #else +const char* micFile = "audio_long16.pcm"; #endif #if !defined(MAC_IPHONE)