Skip to content
This repository has been archived by the owner on Feb 16, 2025. It is now read-only.

Commit

Permalink
core: replace keyNew ("", ...) with keyNew ("/", ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Nov 3, 2019
1 parent da943aa commit b077488
Show file tree
Hide file tree
Showing 18 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions benchmarks/plugingetset.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main (int argc, char ** argv)
KeySet * conf = ksNew (0, KS_END);
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (pluginname, modules, conf, errorKey);
keyDel (errorKey);

Expand All @@ -69,7 +69,7 @@ int main (int argc, char ** argv)
KeySet * conf = ksNew (0, KS_END);
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (pluginname, modules, conf, errorKey);
keyDel (errorKey);
plugin->kdbSet (plugin, ks, setKey);
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static int benchmarkOpenPlugins (void)
modules[i] = ksNew (0, KS_END);
elektraModulesInit (modules[i], 0);
KeySet * conf = ksNew (0, KS_END);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (pluginNames[i], modules[i], conf, errorKey);

const Key * metaWarnings = keyGetMeta (errorKey, "warnings");
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ease/reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ char * elektraResolveReference (const char * reference, const Key * baseKey, con
return NULL;
}

Key * fullReference = keyNew ("", KEY_END);
Key * fullReference = keyNew ("/", KEY_END);

if (elektraStrNCmp (reference, "@/", 2) == 0)
{
Expand Down
6 changes: 3 additions & 3 deletions src/libs/elektra/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int elektraBackendSetMountpoint (Backend * backend, KeySet * elektraConfig, Key
return -1;
}

backend->mountpoint = keyNew ("", KEY_VALUE, keyBaseName (root), KEY_END);
backend->mountpoint = keyNew ("/", KEY_VALUE, keyBaseName (root), KEY_END);
elektraKeySetName (backend->mountpoint, keyString (foundMountpoint), KEY_CASCADING_NAME | KEY_EMPTY_NAME);

keySetName (errorKey, keyName (backend->mountpoint));
Expand Down Expand Up @@ -193,7 +193,7 @@ Backend * backendOpen (KeySet * elektraConfig, KeySet * modules, KeySet * global
KeySet * cut = ksCut (elektraConfig, cur);
if (!strcmp (keyBaseName (cur), "config"))
{
systemConfig = ksRenameKeys (cut, "system");
systemConfig = ksRenameKeys (cut, "system/");
ksDel (cut);
}
else if (!strcmp (keyBaseName (cur), "errorplugins"))
Expand Down Expand Up @@ -326,7 +326,7 @@ Backend * backendOpenDefault (KeySet * modules, KeySet * global, const char * fi
backend->setplugins[STORAGE_PLUGIN] = storage;
storage->refcounter = 2;

Key * mp = keyNew ("", KEY_VALUE, "default", KEY_END);
Key * mp = keyNew ("/", KEY_VALUE, "default", KEY_END);
backend->mountpoint = mp;
keyIncRef (backend->mountpoint);

Expand Down
2 changes: 1 addition & 1 deletion src/libs/elektra/kdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ int kdbEnsure (KDB * handle, KeySet * contract, Key * parentKey)
KeySet * pluginConfig = ksCut (pluginsContract, pluginCutpoint);
ksAppendKey (pluginConfig, pluginCutpoint);
{
KeySet * newPluginConfig = ksRenameKeys (pluginConfig, "user");
KeySet * newPluginConfig = ksRenameKeys (pluginConfig, "user/");
ksDel (pluginConfig);
pluginConfig = newPluginConfig;
}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/elektra/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ KeySet * elektraMountGlobalsGetConfig (Key * cur, KeySet * global)
keyAddBaseName (usrConfigCutKey, "user");
KeySet * sysConfigKS = ksCut (global, sysConfigCutKey);
KeySet * usrConfigKS = ksCut (global, usrConfigCutKey);
KeySet * renamedSysConfig = ksRenameKeys (sysConfigKS, "system");
KeySet * renamedUsrConfig = ksRenameKeys (usrConfigKS, "user");
KeySet * renamedSysConfig = ksRenameKeys (sysConfigKS, "system/");
KeySet * renamedUsrConfig = ksRenameKeys (usrConfigKS, "user/");
ksDel (sysConfigKS);
ksDel (usrConfigKS);
keyDel (usrConfigCutKey);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/elektra/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int elektraProcessPlugins (Plugin ** plugins, KeySet * modules, KeySet * referen
KeySet * cutConfig = ksCut (config, key);
keyDel (key);

KeySet * pluginConfig = ksRenameKeys (cutConfig, "user");
KeySet * pluginConfig = ksRenameKeys (cutConfig, "user/");
ksDel (cutConfig);
if (!pluginConfig) return -1;
ksAppend (pluginConfig, systemConfig);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/list/addPluginTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main (int argc, char const * argv[])
keyNew ("user/plugins/#1/placements/set", KEY_VALUE, "presetstorage", KEY_END),
keyNew ("user/plugins/#1/placements/get", KEY_VALUE, "pregetstorage", KEY_END), KS_END);

Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
elektraModulesInit (modules, 0);
Plugin * list = elektraPluginOpen ("list", modules, conf, errorKey);
getFunction (list, "addPlugin");
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/lua/testmod_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ static void test_two_scripts (void)
KeySet * conf2 = ksNew (2, keyNew ("user/script", KEY_VALUE, srcdir_file ("lua/lua_plugin2.lua"), KEY_END),
keyNew ("user/print", KEY_END), KS_END);

Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen ("lua", modules, conf, errorKey);
succeed_if (output_warnings (errorKey), "warnings in kdbOpen");
succeed_if (output_error (errorKey), "errors in kdbOpen");
exit_if_fail (plugin != NULL, "unable to load lua plugin");
keyDel (errorKey);

Key * errorKey2 = keyNew ("", KEY_END);
Key * errorKey2 = keyNew ("/", KEY_END);
Plugin * plugin2 = elektraPluginOpen ("lua", modules, conf2, errorKey2);
succeed_if (output_warnings (errorKey2), "warnings in kdbOpen");
succeed_if (output_error (errorKey2), "errors in kdbOpen");
Expand Down Expand Up @@ -106,7 +106,7 @@ static void test_wrong (void)
KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, srcdir_file ("lua/lua_plugin_wrong.lua"), KEY_END),
keyNew ("user/print", KEY_END), KS_END);

Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen ("lua", modules, conf, errorKey);
succeed_if (!output_warnings (errorKey), "we expect some warnings");
succeed_if (!output_error (errorKey), "we expect some errors");
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/process/testmod_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static void test_no_plugin_key (void)
// No plugin key, should fail
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen ("process", modules, conf, errorKey);
succeed_if (!output_warnings (errorKey), "no warnings in kdbOpen for plugin process");
succeed_if (output_error (errorKey), "error in kdbOpen for plugin process");
Expand All @@ -83,7 +83,7 @@ static void test_invalid_plugin_key (void)
// Non-existent plugin, should fail
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen ("process", modules, conf, errorKey);
succeed_if (!output_warnings (errorKey), "no warnings in kdbOpen for plugin process");
succeed_if (!output_error (errorKey), "no error in kdbOpen for plugin process");
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/python/testmod_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ static void test_two_scripts (void)
keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);

Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME), modules, conf, errorKey);
succeed_if (output_warnings (errorKey), "warnings in kdbOpen");
succeed_if (output_error (errorKey), "errors in kdbOpen");
exit_if_fail (plugin != NULL, "unable to load python plugin");
keyDel (errorKey);

Key * errorKey2 = keyNew ("", KEY_END);
Key * errorKey2 = keyNew ("/", KEY_END);
Plugin * plugin2 = elektraPluginOpen (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME), modules, conf2, errorKey2);
succeed_if (output_warnings (errorKey2), "warnings in kdbOpen");
succeed_if (output_error (errorKey2), "errors in kdbOpen");
Expand Down Expand Up @@ -136,7 +136,7 @@ static void test_wrong (void)
keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);

Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME), modules, conf, errorKey);
succeed_if (!output_warnings (errorKey), "we expect some warnings");
succeed_if (!output_error (errorKey), "we expect some errors");
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/quickdump/testmod_quickdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static void test_noParent (void)
{
printf ("test noparent\n");

KeySet * input = ksNew (2, keyNew ("", KEY_VALUE, "value", KEY_END), keyNew ("/a", KEY_VALUE, "value1", KEY_END), KS_END);
KeySet * input = ksNew (2, keyNew ("/", KEY_VALUE, "value", KEY_END), keyNew ("/a", KEY_VALUE, "value1", KEY_END), KS_END);
KeySet * expected = ksNew (2, keyNew ("dir/tests/bench", KEY_VALUE, "value", KEY_END),
keyNew ("dir/tests/bench/a", KEY_VALUE, "value1", KEY_END), KS_END);
char * outfile = elektraStrDup (srcdir_file ("quickdump/test.quickdump.out"));
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/resolver/resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static int needsMapping (Key * testKey, Key * errorKey)

static int mapFilesForNamespaces (resolverHandles * p, Key * errorKey)
{
Key * testKey = keyNew ("", KEY_END);
Key * testKey = keyNew ("/", KEY_END);
// switch is only present to forget no namespace and to get
// a warning whenever a new namespace is present.
// In fact its linear code executed:
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/ruby/testmod_ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void test_plugin_open_script_not_found (void)

KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (PLUGIN_NAME, modules, conf, errorKey);

succeed_if_same_string (keyString (keyGetMeta (errorKey, "warnings/#00/description")), "Plugin Misbehavior");
Expand All @@ -59,7 +59,7 @@ static void test_plugin_open_invalid_script (void)

KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (PLUGIN_NAME, modules, conf, errorKey);

succeed_if_same_string (keyString (keyGetMeta (errorKey, "warnings/#00/description")), "Plugin Misbehavior");
Expand All @@ -77,7 +77,7 @@ static void test_plugin_open_not_a_script (void)
KeySet * conf = ksNew (1, keyNew ("user/script", KEY_VALUE, srcdir_file (SCRIPTS_DIR "not_a_ruby_script.txt"), KEY_END), KS_END);
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (PLUGIN_NAME, modules, conf, errorKey);

succeed_if_same_string (keyString (keyGetMeta (errorKey, "warnings/#00/description")), "Plugin Misbehavior");
Expand Down Expand Up @@ -210,12 +210,12 @@ static void test_two_plugin_instances (void)
KeySet * conf = ksNew (1, keyNew ("user/script", KEY_VALUE, srcdir_file (SCRIPTS_DIR "statefull.rb"), KEY_END), KS_END);
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey1 = keyNew ("", KEY_END);
Key * errorKey1 = keyNew ("/", KEY_END);
Plugin * plugin1 = elektraPluginOpen (PLUGIN_NAME, modules, conf, errorKey1);

succeed_if (plugin1 != NULL, "could not open plugin instance 1");

Key * errorKey2 = keyNew ("", KEY_END);
Key * errorKey2 = keyNew ("/", KEY_END);
Plugin * plugin2 = elektraPluginOpen (PLUGIN_NAME, modules, conf, errorKey2);

succeed_if (plugin2 != NULL, "could not open plugin instance 1");
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/type/testmod_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static void test_booleanUserValueError (void)
keyNew ("user/booleans/#1/false", KEY_VALUE, "strangeFalseValue", KEY_END), KS_END);
KeySet * modules = ksNew (0, KS_END);
elektraModulesInit (modules, 0);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen ("type", modules, conf, errorKey);
succeed_if (plugin == NULL, "plugin open should have failed");
succeed_if (keyGetMeta (errorKey, "error") != NULL, "no error found after failed open");
Expand Down
2 changes: 1 addition & 1 deletion tests/cframework/tests_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define PLUGIN_OPEN(NAME) \
KeySet * modules = ksNew (0, KS_END); \
elektraModulesInit (modules, 0); \
Key * errorKey = keyNew ("", KEY_END); \
Key * errorKey = keyNew ("/", KEY_END); \
Plugin * plugin = elektraPluginOpen (NAME, modules, conf, errorKey); \
succeed_if (output_warnings (errorKey), "warnings in kdbOpen for plugin " NAME); \
succeed_if (output_error (errorKey), "error in kdbOpen for plugin " NAME); \
Expand Down
40 changes: 20 additions & 20 deletions tests/ctest/test_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ KeySet * set_simple (void)
keyNew ("system/elektra/mountpoints/simple/config/path", KEY_END),

keyNew ("system/elektra/mountpoints/simple/errorplugins", KEY_END),
keyNew ("system/elektra/mountpoints/simple/errorplugins/#1" KDB_DEFAULT_STORAGE, KEY_END),
keyNew ("system/elektra/mountpoints/simple/errorplugins/\\#1" KDB_DEFAULT_STORAGE, KEY_END),

keyNew ("system/elektra/mountpoints/simple/getplugins", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE, KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config/anything", KEY_VALUE, "plugin",
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE, KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config/anything", KEY_VALUE, "plugin",
KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config/more", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config/more/config", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config/more/config/below", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/#1" KDB_DEFAULT_STORAGE "/config/path", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config/more", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config/more/config", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config/more/config/below", KEY_END),
keyNew ("system/elektra/mountpoints/simple/getplugins/\\#1" KDB_DEFAULT_STORAGE "/config/path", KEY_END),

keyNew ("system/elektra/mountpoints/simple/mountpoint", KEY_VALUE, "user/tests/backend/simple", KEY_END),

keyNew ("system/elektra/mountpoints/simple/setplugins", KEY_END),
keyNew ("system/elektra/mountpoints/simple/setplugins/#1" KDB_DEFAULT_STORAGE, KEY_END),
keyNew ("system/elektra/mountpoints/simple/setplugins/\\#1" KDB_DEFAULT_STORAGE, KEY_END),

keyNew ("system/elektra/mountpoints/simple/errorplugins", KEY_END),
keyNew ("system/elektra/mountpoints/simple/errorplugins/#1" KDB_DEFAULT_STORAGE, KEY_END), KS_END);
keyNew ("system/elektra/mountpoints/simple/errorplugins/\\#1" KDB_DEFAULT_STORAGE, KEY_END), KS_END);
}

KeySet * set_pluginconf (void)
Expand Down Expand Up @@ -144,7 +144,7 @@ static void test_default (void)

Key * mp;
succeed_if ((mp = backend->mountpoint) != 0, "no mountpoint found");
succeed_if_same_string (keyName (mp), "");
succeed_if_same_string (keyName (mp), "/");
succeed_if_same_string (keyString (mp), "default");

backendClose (backend, 0);
Expand All @@ -167,31 +167,31 @@ KeySet * set_backref (void)
keyNew ("system/elektra/mountpoints/backref/config/path", KEY_END),

keyNew ("system/elektra/mountpoints/backref/errorplugins", KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#", KEY_VALUE,
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#", KEY_VALUE,
"introduce reference", KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config",
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config",
KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
"#/config/anything",
KEY_VALUE, "plugin", KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config/more",
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config/more",
KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
"#/config/more/config",
KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE
"#/config/more/config/below",
KEY_END),
keyNew ("system/elektra/mountpoints/backref/errorplugins/#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config/path",
keyNew ("system/elektra/mountpoints/backref/errorplugins/\\#1#" KDB_DEFAULT_STORAGE "#" KDB_DEFAULT_STORAGE "#/config/path",
KEY_END),

keyNew ("system/elektra/mountpoints/backref/getplugins", KEY_END),
keyNew ("system/elektra/mountpoints/backref/getplugins/#1#" KDB_DEFAULT_STORAGE, KEY_VALUE, "backend", KEY_END),
keyNew ("system/elektra/mountpoints/backref/getplugins/\\#1#" KDB_DEFAULT_STORAGE, KEY_VALUE, "backend", KEY_END),

keyNew ("system/elektra/mountpoints/backref/mountpoint", KEY_VALUE, "user/tests/backend/backref", KEY_END),

keyNew ("system/elektra/mountpoints/backref/setplugins", KEY_END),
keyNew ("system/elektra/mountpoints/backref/setplugins/#1#" KDB_DEFAULT_STORAGE, KEY_VALUE, "reference to other default",
keyNew ("system/elektra/mountpoints/backref/setplugins/\\#1#" KDB_DEFAULT_STORAGE, KEY_VALUE, "reference to other default",
KEY_END),
KS_END);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ctest/test_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int openStoragePlugin (const size_t storagePlugin)
modules[storagePlugin] = ksNew (0, KS_END);
elektraModulesInit (modules[storagePlugin], 0);
KeySet * conf = ksNew (0, KS_END);
Key * errorKey = keyNew ("", KEY_END);
Key * errorKey = keyNew ("/", KEY_END);
Plugin * plugin = elektraPluginOpen (pluginNames[storagePlugin], modules[storagePlugin], conf, errorKey);

const Key * metaWarnings = keyGetMeta (errorKey, "warnings");
Expand Down

0 comments on commit b077488

Please sign in to comment.