Commit 75320401 authored by Simon Morlat's avatar Simon Morlat

fix ressource path problem on windows.

parent a7529424
...@@ -129,6 +129,7 @@ int main (int argc, char *argv[]) { ...@@ -129,6 +129,7 @@ int main (int argc, char *argv[]) {
belle_sip_tester_init(NULL); belle_sip_tester_init(NULL);
#ifndef WIN32 /*this hack doesn't work for argv[0]="c:\blablab\"*/
// this allows to launch liblinphone_tester from outside of tester directory // this allows to launch liblinphone_tester from outside of tester directory
if (strstr(argv[0], ".libs")) { if (strstr(argv[0], ".libs")) {
int prefix_length = strstr(argv[0], ".libs") - argv[0] + 1; int prefix_length = strstr(argv[0], ".libs") - argv[0] + 1;
...@@ -138,6 +139,7 @@ int main (int argc, char *argv[]) { ...@@ -138,6 +139,7 @@ int main (int argc, char *argv[]) {
bc_tester_set_writable_dir_prefix(prefix); bc_tester_set_writable_dir_prefix(prefix);
belle_sip_free(prefix); belle_sip_free(prefix);
} }
#endif
if (env_domain) { if (env_domain) {
test_domain=env_domain; test_domain=env_domain;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment