diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-13 15:30:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-13 15:30:00 +0200 |
commit | 8e8f8d92c2e49804af80cd42145bea728b9c7fd0 (patch) | |
tree | 1b84876ddf0adf3323a9aa1a81e4cf9628f944d0 /libs/evoral/test | |
parent | aabc5108f34058d466d1e7451694193a08379ce2 (diff) |
allow to run unit-test under wine from srcdir.
Diffstat (limited to 'libs/evoral/test')
-rw-r--r-- | libs/evoral/test/SMFTest.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/evoral/test/SMFTest.cpp b/libs/evoral/test/SMFTest.cpp index d42ee26dff..0907cdc2f5 100644 --- a/libs/evoral/test/SMFTest.cpp +++ b/libs/evoral/test/SMFTest.cpp @@ -25,11 +25,12 @@ PBD::Searchpath test_search_path () { #ifdef PLATFORM_WINDOWS - string wsp(g_win32_get_package_installation_directory_of_module(NULL)); - return Glib::build_filename (wsp, "evoral_testdata"); -#else - return Glib::getenv("EVORAL_TEST_PATH"); + if (!getenv("EVORAL_TEST_PATH")) { + string wsp(g_win32_get_package_installation_directory_of_module(NULL)); + return Glib::build_filename (wsp, "evoral_testdata"); + } #endif + return Glib::getenv("EVORAL_TEST_PATH"); } void |