Call SetExecutablePath from test_main.cc

Fixes crash in video_engine_tests on bots, that were unabled to locate
the resource file.

BUG=
R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2083004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4581 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org 2013-08-21 16:00:15 +00:00
parent 4c96601aed
commit fbf0f69bf8

View File

@ -10,12 +10,14 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/video_engine/test/common/flags.h"
#include "webrtc/video_engine/test/common/run_tests.h"
int main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
webrtc::test::flags::Init(&argc, &argv);
webrtc::test::SetExecutablePath(argv[0]);
return webrtc::test::RunAllTests();
}