summaryrefslogtreecommitdiffstats
path: root/test/missing_name.lv2/test_missing_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/missing_name.lv2/test_missing_name.c')
-rw-r--r--test/missing_name.lv2/test_missing_name.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/missing_name.lv2/test_missing_name.c b/test/missing_name.lv2/test_missing_name.c
index 8e32d8b..d3885f6 100644
--- a/test/missing_name.lv2/test_missing_name.c
+++ b/test/missing_name.lv2/test_missing_name.c
@@ -1,8 +1,11 @@
+#undef NDEBUG
+
#include "../src/lilv_internal.h"
#include "serd/serd.h"
#include "lilv/lilv.h"
+#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
@@ -10,13 +13,6 @@
#define PLUGIN_URI "http://example.org/missing-name"
-#define TEST_ASSERT(check) do {\
- if (!(check)) {\
- fprintf(stderr, "%s:%d: failed test: %s\n", __FILE__, __LINE__, #check);\
- return 1;\
- }\
-} while (0)
-
int
main(int argc, char** argv)
{
@@ -40,10 +36,10 @@ main(int argc, char** argv)
LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI);
const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
const LilvPlugin* plugin = lilv_plugins_get_by_uri(plugins, plugin_uri);
- TEST_ASSERT(plugin);
+ assert(plugin);
LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL);
- TEST_ASSERT(instance);
+ assert(instance);
lilv_instance_free(instance);
lilv_node_free(plugin_uri);