projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test fix: test_fork can hang while waiting for child pids
[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 16d4f7b3991de7d980e2689c3a14571e10a1ac63..5bca684a513d16bbc4b740dc061e2dca4b4cbc34 100644
(file)
--- a/
tests/unit/test_kernel_data.c
+++ b/
tests/unit/test_kernel_data.c
@@
-16,7
+16,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
@@
-33,11
+32,12
@@
#define RANDOM_STRING_LEN 11
/* Number of TAP tests in this file */
#define RANDOM_STRING_LEN 11
/* Number of TAP tests in this file */
-#define NUM_TESTS 1
0
+#define NUM_TESTS 1
1
-/* For
lttnger
r.h */
+/* For
erro
r.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
+int lttng_opt_mi;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
@@
-120,7
+120,6
@@
static void test_create_kernel_channel(void)
ok(chan->fd == -1 &&
chan->enabled == 1 &&
chan->stream_count == 0 &&
ok(chan->fd == -1 &&
chan->enabled == 1 &&
chan->stream_count == 0 &&
- chan->ctx == NULL &&
chan->channel->attr.overwrite == attr.attr.overwrite,
"Validate kernel channel");
chan->channel->attr.overwrite == attr.attr.overwrite,
"Validate kernel channel");
@@
-135,11
+134,13
@@
static void test_create_kernel_event(void)
struct lttng_event ev;
memset(&ev, 0, sizeof(ev));
struct lttng_event ev;
memset(&ev, 0, sizeof(ev));
- strncpy(ev.name, get_random_string(), LTTNG_KERNEL_SYM_NAME_LEN);
+ ok(!lttng_strncpy(ev.name, get_random_string(),
+ LTTNG_KERNEL_SYM_NAME_LEN),
+ "Validate string length");
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
- event = trace_kernel_create_event(&ev);
+ event = trace_kernel_create_event(&ev
, NULL, NULL
);
ok(event != NULL, "Create kernel event");
ok(event->fd == -1 &&
ok(event != NULL, "Create kernel event");
ok(event->fd == -1 &&
This page took
0.029957 seconds
and
4
git commands to generate.