[lttng-dev] [PATCH lttng-tools stable-2.6 2/3] Tests: use configured processor count in snapshot tests

Michael Jeanson mjeanson at efficios.com
Tue Mar 15 20:13:25 UTC 2016


From: Jérémie Galarneau <jeremie.galarneau at efficios.com>

Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 tests/regression/tools/snapshots/ust_test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test
index e839b84..0b8bb24 100755
--- a/tests/regression/tools/snapshots/ust_test
+++ b/tests/regression/tools/snapshots/ust_test
@@ -182,7 +182,7 @@ function test_ust_local_snapshot ()
 function test_ust_local_snapshot_max_size ()
 {
 	subbuf_size=8192
-	num_cpus=`nproc`
+	num_cpus=$(conf_proc_count)
 
 	# The minimum size limit is min(subbuf_size) * nb_streams
 	max_size=$(($subbuf_size*$num_cpus))
-- 
2.7.0



More information about the lttng-dev mailing list