tests: compile all unit tests as C++
[lttng-tools.git] / tests / regression / tools / trigger / hidden / hidden_trigger.c
index 3ff126562c526159185369690ced758063e3ab7b..8edd97ab2a22f2f79cb48efc886d2d2d37979489 100644 (file)
@@ -9,7 +9,6 @@
  *
  */
 
-#include <assert.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -71,7 +70,7 @@ int setup_session_with_size_rotation_schedule(const char *session_output_path)
                .name = TEST_CHANNEL_NAME,
                .enabled = 1,
                .attr.overwrite = -1,
-               .attr.subbuf_size = sysconf(_SC_PAGESIZE) * 8,
+               .attr.subbuf_size = sysconf(_SC_PAGE_SIZE) * 8,
                .attr.num_subbuf = 8,
                .attr.output = LTTNG_EVENT_MMAP,
        };
@@ -124,7 +123,7 @@ int setup_session_with_size_rotation_schedule(const char *session_output_path)
         * time.
         */
        rotation_status = lttng_rotation_schedule_size_threshold_set_threshold(
-                       rotation_schedule, sysconf(_SC_PAGESIZE) * 4096);
+                       rotation_schedule, sysconf(_SC_PAGE_SIZE) * 4096);
        if (rotation_status != LTTNG_ROTATION_STATUS_OK) {
                fail("Failed to set size threshold of session rotation schedule");
                ret = -1;
This page took 0.024436 seconds and 4 git commands to generate.