Ticket #736: 0.36-tests-module-suffix.patch
| File 0.36-tests-module-suffix.patch, 6.5 kB (added by yselkowitz, 5 months ago) |
|---|
-
src/libopensync-0.36/tests/format-tests/check_format_env.c
old new 369 369 fail_unless(error == NULL, NULL); 370 370 371 371 char *curdir = g_get_current_dir(); 372 char *path = g_strdup_printf("%s/mock-format. so", curdir);372 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 373 373 fail_unless(osync_module_load(module, path, &error), NULL); 374 374 fail_unless(error == NULL, NULL); 375 375 g_free(path); -
src/libopensync-0.36/tests/module-tests/check_module.c
old new 27 27 fail_unless(error == NULL, NULL); 28 28 29 29 char *curdir = g_get_current_dir(); 30 char *path = g_strdup_printf("%s/mock-format. so", curdir);30 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 31 31 fail_unless(osync_module_load(module, path, &error), NULL); 32 32 fail_unless(error == NULL, NULL); 33 33 g_free(path); … … 51 51 fail_unless(error == NULL, NULL); 52 52 53 53 char *curdir = g_get_current_dir(); 54 char *path = g_strdup_printf("%s/does-not-exist. so", curdir);54 char *path = g_strdup_printf("%s/does-not-exist.%s", curdir, G_MODULE_SUFFIX); 55 55 fail_unless(!osync_module_load(module, path, &error), NULL); 56 56 fail_unless(error != NULL, NULL); 57 57 g_free(path); … … 74 74 fail_unless(error == NULL, NULL); 75 75 76 76 char *curdir = g_get_current_dir(); 77 char *path = g_strdup_printf("%s/mock-format. so", curdir);77 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 78 78 fail_unless(osync_module_load(module, path, &error), NULL); 79 79 fail_unless(error == NULL, NULL); 80 80 g_free(path); … … 102 102 fail_unless(error == NULL, NULL); 103 103 104 104 char *curdir = g_get_current_dir(); 105 char *path = g_strdup_printf("%s/mock-format. so", curdir);105 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 106 106 fail_unless(osync_module_load(module, path, &error), NULL); 107 107 fail_unless(error == NULL, NULL); 108 108 g_free(path); … … 131 131 fail_unless(error == NULL, NULL); 132 132 133 133 char *curdir = g_get_current_dir(); 134 char *path = g_strdup_printf("%s/mock-format. so", curdir);134 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 135 135 fail_unless(osync_module_load(module, path, &error), NULL); 136 136 fail_unless(error == NULL, NULL); 137 137 g_free(path); … … 158 158 fail_unless(error == NULL, NULL); 159 159 160 160 char *curdir = g_get_current_dir(); 161 char *path = g_strdup_printf("%s/mock-format. so", curdir);161 char *path = g_strdup_printf("%s/mock-format.%s", curdir, G_MODULE_SUFFIX); 162 162 fail_unless(osync_module_load(module, path, &error), NULL); 163 163 fail_unless(error == NULL, NULL); 164 164 g_free(path); -
src/libopensync-0.36/tests/support.c
old new 48 48 abort(); 49 49 g_free(command);*/ 50 50 51 command = g_strdup_printf("cp ./mock-plugin/mock-sync. so %s", testbed);51 command = g_strdup_printf("cp ./mock-plugin/mock-sync.%s %s", G_MODULE_SUFFIX, testbed); 52 52 if (system(command)) 53 53 abort(); 54 54 g_free(command); 55 55 56 command = g_strdup_printf("cp ./mock-plugin/mock-format. so %s", testbed);56 command = g_strdup_printf("cp ./mock-plugin/mock-format.%s %s", G_MODULE_SUFFIX, testbed); 57 57 if (system(command)) 58 58 abort(); 59 59 g_free(command); 60 60 61 command = g_strdup_printf("cp -R ../formats/*. so %s", testbed);61 command = g_strdup_printf("cp -R ../formats/*.%s %s", G_MODULE_SUFFIX, testbed); 62 62 if (system(command)) 63 63 abort(); 64 64 g_free(command);
