projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
tests
/
utils
/
testapp
/
gen-ust-tracef
/
gen-ust-tracef.c
diff --git
a/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
b/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
index 8f74a90daf45728d0bd2f24cb17a8e6ddcce5224..f0f6cc63c372465363bda2b453c466d810580f3f 100644
(file)
--- a/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
+++ b/
tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
@@
-7,7
+7,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
@@
-18,6
+17,7
@@
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
+#include <common/macros.h>
#include <lttng/tracef.h>
#include "signal-helper.h"
#include <lttng/tracef.h>
#include "signal-helper.h"
@@
-28,7
+28,7
@@
void create_file(const char *path)
{
int ret;
{
int ret;
-
assert
(path);
+
LTTNG_ASSERT
(path);
ret = creat(path, S_IRWXU);
if (ret < 0) {
ret = creat(path, S_IRWXU);
if (ret < 0) {
This page took
0.023376 seconds
and
4
git commands to generate.