Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / tests / regression / kernel / test_callstack
index cd853ecde3b575671a1c0405a1f2efc87e78a7d7..960bb8a44e1511f08ae425a675dc296c75dc4410 100755 (executable)
@@ -120,8 +120,8 @@ function test_kernel_callstack()
        rm -rf "$TRACE_PATH"
 }
 
-# Only run userspace callstack test on x86
-uname -m | grep -E "x86" >/dev/null 2>&1
+# Only run userspace callstack test on x86 (32 and 64 variants)
+uname -m | grep "86" >/dev/null 2>&1
 if test $? == 0; then
        NUM_TESTS=$((NUM_TESTS+10))
        RUN_USERSPACE_TEST=1
@@ -136,13 +136,7 @@ print_test_banner "$TEST_DESC"
 
 bail_out_if_no_babeltrace
 
-if [ "$(id -u)" == "0" ]; then
-       isroot=1
-else
-       isroot=0
-fi
-
-skip $isroot "Root access is needed. Skipping all tests." "$NUM_TESTS" ||
+check_skip_kernel_test "$NUM_TESTS" "Skipping all tests." ||
 {
        validate_lttng_modules_present
        start_lttng_sessiond
This page took 0.02375 seconds and 4 git commands to generate.