Tests: don't assume a 4K page size in test_notification
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Jul 2017 20:48:44 +0000 (16:48 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Jul 2017 20:48:44 +0000 (16:48 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/notification/test_notification

index 48a5a16cb3364c71793444f06ce1de3f294e7e64..421abe0ee63294bcc8a54a193be5fc1f79d9f533 100755 (executable)
@@ -36,6 +36,7 @@ CHANNEL_NAME="my_ust_channel"
 EVENT_NAME="tp:tptest"
 
 TRACE_PATH=$(mktemp -d)
+PAGE_SIZE=$(getconf PAGE_SIZE)
 
 DIR=$(readlink -f $TESTDIR)
 
@@ -50,7 +51,7 @@ start_lttng_sessiond_notap
 
 create_lttng_session_notap $SESSION_NAME $TRACE_PATH
 
-enable_ust_lttng_channel_notap $SESSION_NAME $CHANNEL_NAME --subbuf-size=4096
+enable_ust_lttng_channel_notap $SESSION_NAME $CHANNEL_NAME --subbuf-size=$PAGE_SIZE
 enable_ust_lttng_event_notap $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
 
 #This is needed since the testpoint create a pipe with the consumer type suffixed
This page took 0.025198 seconds and 4 git commands to generate.