chore(linux): Fix unit tests

Array has to be NULL terminated.
This commit is contained in:
Eberhard Beilharz 2021-11-16 15:45:51 +01:00
parent 65d1a3f9a0
commit 07fb8084ee
No known key found for this signature in database
GPG key ID: 64A39A9E98B53105

View file

@ -62,7 +62,7 @@ test_keyman_put_options_todconf__other_keys() {
// Initialize
gchar* testname = "test_keyman_put_options_todconf__other_keys";
delete_key(testname);
gchar* existingKeys[] = {"key1=val1", "key2=val2"};
gchar* existingKeys[] = {"key1=val1", "key2=val2", NULL};
set_key(testname, existingKeys);
gchar* value = g_strdup_printf("%d", g_test_rand_int());
@ -90,7 +90,7 @@ test_keyman_put_options_todconf__existing_key() {
// Initialize
gchar* testname = "test_keyman_put_options_todconf__existing_key";
delete_key(testname);
gchar* existingKeys[] = {"key1=val1", "new_key=val2"};
gchar* existingKeys[] = {"key1=val1", "new_key=val2", NULL};
set_key(testname, existingKeys);
gchar* value = g_strdup_printf("%d", g_test_rand_int());