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
/
unit
/
test_kernel_data.c
diff --git
a/tests/unit/test_kernel_data.c
b/tests/unit/test_kernel_data.c
index 7ed0453af603b689c918866282b38284b3d03fd6..79489e3d3324651d0ac766d8ad86e611db215dcb 100644
(file)
--- a/
tests/unit/test_kernel_data.c
+++ b/
tests/unit/test_kernel_data.c
@@
-5,7
+5,6
@@
*
*/
*
*/
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-23,10
+22,10
@@
/* Number of TAP tests in this file */
#define NUM_TESTS 11
/* Number of TAP tests in this file */
#define NUM_TESTS 11
-/* For error.h */
-int lttng_opt_quiet = 1;
-
int lttng_opt_verbose
;
-int lttng_opt_mi;
+#ifdef HAVE_LIBLTTNG_UST_CTL
+#include <lttng/ust-sigbus.h>
+
DEFINE_LTTNG_UST_SIGBUS_STATE()
;
+#endif
static const char alphanum[] =
"0123456789"
static const char alphanum[] =
"0123456789"
@@
-73,7
+72,7
@@
static void test_create_one_kernel_session(void)
static void test_create_kernel_metadata(void)
{
static void test_create_kernel_metadata(void)
{
-
assert
(kern != NULL);
+
LTTNG_ASSERT
(kern != NULL);
kern->metadata = trace_kernel_create_metadata();
ok(kern->metadata != NULL, "Create kernel metadata");
kern->metadata = trace_kernel_create_metadata();
ok(kern->metadata != NULL, "Create kernel metadata");
This page took
0.023457 seconds
and
4
git commands to generate.