Changeset 3536
- Timestamp:
- 08/15/08 19:44:44 (4 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
opensync/format/opensync_format_env.c (modified) (1 diff)
-
opensync/plugin/opensync_plugin_env.c (modified) (1 diff)
-
tests/format-tests/check_format_env.c (modified) (1 diff)
-
tests/module-tests/check_module.c (modified) (6 diffs)
-
tests/support.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/opensync/format/opensync_format_env.c
r3506 r3536 72 72 filename = g_strdup_printf ("%s%c%s", path, G_DIR_SEPARATOR, de); 73 73 74 if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR) || !g_pattern_match_simple("*. so", filename)) {74 if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR) || !g_pattern_match_simple("*."G_MODULE_SUFFIX, filename)) { 75 75 g_free(filename); 76 76 continue; -
trunk/opensync/plugin/opensync_plugin_env.c
r3440 r3536 148 148 filename = g_strdup_printf ("%s%c%s", path, G_DIR_SEPARATOR, de); 149 149 150 if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR) || !g_pattern_match_simple("*. so", filename)) {150 if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR) || !g_pattern_match_simple("*."G_MODULE_SUFFIX, filename)) { 151 151 g_free(filename); 152 152 continue; -
trunk/tests/format-tests/check_format_env.c
r2743 r3536 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); -
trunk/tests/module-tests/check_module.c
r2743 r3536 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); … … 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); … … 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); … … 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); … … 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); … … 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); -
trunk/tests/support.c
r3534 r3536 65 65 g_free(command);*/ 66 66 67 command = g_strdup_printf("cp ./mock-plugin/mock-sync. so %s", testbed);67 command = g_strdup_printf("cp ./mock-plugin/mock-sync.%s %s", G_MODULE_SUFFIX, testbed); 68 68 if (system(command)) 69 69 abort(); 70 70 g_free(command); 71 71 72 command = g_strdup_printf("cp ./mock-plugin/mock-format. so %s", testbed);72 command = g_strdup_printf("cp ./mock-plugin/mock-format.%s %s", G_MODULE_SUFFIX, testbed); 73 73 if (system(command)) 74 74 abort(); 75 75 g_free(command); 76 76 77 command = g_strdup_printf("cp -R ../formats/*. so %s", testbed);77 command = g_strdup_printf("cp -R ../formats/*.%s %s", G_MODULE_SUFFIX, testbed); 78 78 if (system(command)) 79 79 abort();
