summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test.lv2/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c
index bf0f87b..c1cf4d7 100644
--- a/test/test.lv2/test.c
+++ b/test/test.lv2/test.c
@@ -213,6 +213,16 @@ save(LV2_Handle instance,
return LV2_STATE_ERR_UNKNOWN;
}
+ // Try to store with a null key (should fail)
+ if (!store(callback_data,
+ 0,
+ &urid2,
+ sizeof(uint32_t),
+ map_uri(plugin, LV2_ATOM__URID),
+ LV2_STATE_IS_POD | LV2_STATE_IS_PORTABLE)) {
+ return LV2_STATE_ERR_UNKNOWN;
+ }
+
store(callback_data,
map_uri(plugin, "http://example.org/num-runs"),
&plugin->num_runs,