diff --git a/CMakeLists.txt b/CMakeLists.txt index 516ed1a5e..62ee15c2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.14) project(dlite - VERSION 0.2.7 + VERSION 0.3.0 DESCRIPTION "Lightweight data-centric framework for working with scientific data" HOMEPAGE_URL "https://github.com/SINTEF/dlite" LANGUAGES C diff --git a/src/dlite-storage-plugins.c b/src/dlite-storage-plugins.c index 6e0bc9888..2a2d35254 100644 --- a/src/dlite-storage-plugins.c +++ b/src/dlite-storage-plugins.c @@ -242,7 +242,7 @@ char *dlite_storage_plugin_path_string(void) If `n` is out of range, it is clipped. - Returns non-zero on error. + Returns the index of the newly inserted element or -1 on error. */ int dlite_storage_plugin_path_insert(int n, const char *path) { @@ -254,7 +254,7 @@ int dlite_storage_plugin_path_insert(int n, const char *path) /* Appends `path` into the current search path. - Returns non-zero on error. + Returns the index of the newly appended element or -1 on error. */ int dlite_storage_plugin_path_append(const char *path) { @@ -267,7 +267,7 @@ int dlite_storage_plugin_path_append(const char *path) Like dlite_storage_plugin_path_append(), but appends at most the first `n` bytes of `path` to the current search path. - Returns non-zero on error. + Returns the index of the newly appended element or -1 on error. */ int dlite_storage_plugin_path_appendn(const char *path, size_t n) { diff --git a/storages/python/tests/test_postgresql_storage.c b/storages/python/tests/test_postgresql_storage.c index e9b0a690f..fb3b24fd6 100644 --- a/storages/python/tests/test_postgresql_storage.c +++ b/storages/python/tests/test_postgresql_storage.c @@ -33,7 +33,9 @@ MU_TEST(test_save) float age = 42.; const char *skills[] = {"jumping", "hopping"}; int n, i; + char *paths = STRINGIFY(dlite_SOURCE_DIR) "/storage/python/tests/*.json"; + mu_check(dlite_storage_plugin_path_append(paths) >= 0); mu_check((meta = dlite_instance_load_url("json://Person.json?mode=r"))); mu_check((inst = dlite_instance_create((DLiteMeta *)meta, dims, "ada"))); mu_assert_int_eq(0, dlite_instance_set_property(inst, "name", &name)); diff --git a/tools/tests/Chemistry-0.1.json b/tools/tests/Chemistry-0.1.json index b25b800cd..32c722e04 100644 --- a/tools/tests/Chemistry-0.1.json +++ b/tools/tests/Chemistry-0.1.json @@ -83,4 +83,4 @@ } ], "dataname": "http://sintef.no/calm/0.1/Chemistry" -} +} \ No newline at end of file