#include <assert.h>
#include <sys/wait.h>
#include <fcntl.h>
-#include <babeltrace/compat/dirent-internal.h>
#include "tap/tap.h"
#include <math.h>
#include <float.h>
#define METADATA_LINE_SIZE 512
#define SEQUENCE_TEST_LENGTH 10
#define ARRAY_TEST_LENGTH 5
-#define PACKET_RESIZE_TEST_LENGTH 5
+#define PACKET_RESIZE_TEST_LENGTH 100000
#define DEFAULT_CLOCK_FREQ 1000000000
#define DEFAULT_CLOCK_PRECISION 1
goto result;
}
- execl(parser_path, "babeltrace", trace_path, NULL);
+ execl(parser_path, parser_path, trace_path, NULL);
perror("# Could not launch the babeltrace process");
exit(-1);
}
non_writer_stream = bt_ctf_stream_create(non_writer_sc, NULL);
assert(non_writer_stream);
non_writer_clock_class =
- bt_ctf_clock_class_create("non_writer_clock_class");
+ bt_ctf_clock_class_create("non_writer_clock_class",
+ 1000000000);
assert(non_writer_clock_class);
ret = bt_ctf_trace_add_clock_class(non_writer_trace,
non_writer_clock_class);
"bt_ctf_trace_set_is_static() succeeds");
ok(bt_ctf_trace_is_static(trace),
"bt_ctf_trace_is_static() returns the expected value");
- clock_class = bt_ctf_clock_class_create("yes");
+ clock_class = bt_ctf_clock_class_create("yes", 1000000000);
assert(clock_class);
stream_class2 = bt_ctf_stream_class_create(NULL);
assert(stream_class2);