Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / tests / utils / testapp / gen-ust-tracef / gen-ust-tracef.c
index 09a2c327dc8724ebdfb7c25c0406d8671c4ccf11..f0f6cc63c372465363bda2b453c466d810580f3f 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #define _LGPL_SOURCE
-#include <assert.h>
 #include <fcntl.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
 
+#include <common/macros.h>
 #include <lttng/tracef.h>
 #include "signal-helper.h"
 
 const char *str = "test string";
 
+static
 void create_file(const char *path)
 {
        int ret;
 
-       assert(path);
+       LTTNG_ASSERT(path);
 
        ret = creat(path, S_IRWXU);
        if (ret < 0) {
This page took 0.024631 seconds and 4 git commands to generate.