projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
liblttng-ctl: use export list to define exported symbols
[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 444ae86ae200aad7bb0ef2755465972678d06f8b..79489e3d3324651d0ac766d8ad86e611db215dcb 100644
(file)
--- a/
tests/unit/test_kernel_data.c
+++ b/
tests/unit/test_kernel_data.c
@@
-5,14
+5,13
@@
*
*/
*
*/
-#include <assert.h>
-#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
+#include <common/compat/errno.h>
#include <bin/lttng-sessiond/trace-kernel.h>
#include <common/defaults.h>
#include <bin/lttng-sessiond/trace-kernel.h>
#include <common/defaults.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");
@@
-149,7
+148,7
@@
static void test_create_kernel_event(void)
ok(event->fd == -1 &&
event->enabled == 1 &&
ok(event->fd == -1 &&
event->enabled == 1 &&
- event->event->instrumentation == LTTNG_KERNEL_TRACEPOINT &&
+ event->event->instrumentation == LTTNG_KERNEL_
ABI_
TRACEPOINT &&
strlen(event->event->name),
"Validate kernel event");
strlen(event->event->name),
"Validate kernel event");
@@
-191,6
+190,5
@@
int main(int argc, char **argv)
test_create_kernel_event();
test_create_kernel_stream();
test_create_kernel_event();
test_create_kernel_stream();
- /* Success */
- return 0;
+ return exit_status();
}
}
This page took
0.024693 seconds
and
4
git commands to generate.