diff options
author | David Robillard <d@drobilla.net> | 2012-02-01 06:13:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-01 06:13:16 +0000 |
commit | fc9886174f78beb302766e7d84eccd48aae91f1b (patch) | |
tree | 45136181c2219b564206cfc9b61fd8fcc6488363 /test/test_plugin.c | |
parent | a20d64eb4c5bf4f04f986cb5abf9eb93eb0f4143 (diff) | |
download | lilv-fc9886174f78beb302766e7d84eccd48aae91f1b.tar.gz lilv-fc9886174f78beb302766e7d84eccd48aae91f1b.tar.bz2 lilv-fc9886174f78beb302766e7d84eccd48aae91f1b.zip |
Windows compatibility fixes.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3971 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/test_plugin.c')
-rw-r--r-- | test/test_plugin.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test_plugin.c b/test/test_plugin.c index 9eda8de..489ea26 100644 --- a/test/test_plugin.c +++ b/test/test_plugin.c @@ -96,7 +96,7 @@ instantiate(const LV2_Descriptor* descriptor, test->input = NULL; test->output = NULL; test->num_runs = 0; - test->tmp_file_path = malloc(L_tmpnam); + test->tmp_file_path = (char*)malloc(L_tmpnam); test->rec_file_path = NULL; test->rec_file = NULL; @@ -321,13 +321,11 @@ restore(LV2_Handle instance, &size, &type, &valflags); if (apath) { - char* path = map_path->absolute_path(map_path->handle, apath); - char* real_path = realpath(path, NULL); - if (strcmp(real_path, plugin->tmp_file_path)) { + char* path = map_path->absolute_path(map_path->handle, apath); + if (strcmp(path, plugin->tmp_file_path)) { fprintf(stderr, "ERROR: Restored bad path `%s' != `%s'\n", - real_path, plugin->tmp_file_path); + path, plugin->tmp_file_path); } - free(real_path); free(path); } |