Tests: channel subbuffers must be larger or equal to PAGE_SIZE
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jun 2017 19:26:47 +0000 (15:26 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jun 2017 19:30:04 +0000 (15:30 -0400)
The multi-app notification test creates channel with 4096 byte
subbuffers. However, this is not supported on architectures
with larger pages, such as PPC64el.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/notification/test_notification_multi_app

index a8f0de9f90bd8aefb978dacf6ada953ef5a62c20..e9271653f86dd006a4da046ac5b99929944289ab 100755 (executable)
@@ -45,6 +45,8 @@ TRACE_PATH=$(mktemp -d)
 
 DIR=$(readlink -f $TESTDIR)
 
 
 DIR=$(readlink -f $TESTDIR)
 
+PAGE_SIZE=$(getconf PAGE_SIZE)
+
 NUM_TESTS=46
 
 source $TESTDIR/utils/utils.sh
 NUM_TESTS=46
 
 source $TESTDIR/utils/utils.sh
@@ -168,7 +170,7 @@ function test_multi_app ()
        rm ${file_sync_after_first_event}
 
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
        rm ${file_sync_after_first_event}
 
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
-       enable_ust_lttng_channel_ok $SESSION_NAME $UST_CHANNEL_NAME --subbuf-size=4096
+       enable_ust_lttng_channel_ok $SESSION_NAME $UST_CHANNEL_NAME --subbuf-size=$PAGE_SIZE
        enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $UST_CHANNEL_NAME
 
        # Fetch consumerd testpoint pipe information
        enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $UST_CHANNEL_NAME
 
        # Fetch consumerd testpoint pipe information
This page took 0.027978 seconds and 5 git commands to generate.