projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tests: skip tests on static build
[lttng-tools.git]
/
tests
/
regression
/
ust
/
getcpu-override
/
test_getcpu_override
diff --git
a/tests/regression/ust/getcpu-override/test_getcpu_override
b/tests/regression/ust/getcpu-override/test_getcpu_override
index f140eeaed2e6b1e686c8cb3f57810e4629d804f9..4ca385aeb0c5e19f58136af4c979498eb8a86963 100755
(executable)
--- a/
tests/regression/ust/getcpu-override/test_getcpu_override
+++ b/
tests/regression/ust/getcpu-override/test_getcpu_override
@@
-50,10
+50,6
@@
source $TESTDIR/utils/utils.sh
# Equivalent to the syconf(_SC_NPROCESSORS_CONF) call.
num_cpus=$(conf_proc_count)
# Equivalent to the syconf(_SC_NPROCESSORS_CONF) call.
num_cpus=$(conf_proc_count)
-if [ ! -x "$CURDIR/.libs/lttng-ust-getcpu-override-test.so" ]; then
- BAIL_OUT "No shared object generated"
-fi
-
# MUST set TESTDIR before calling those functions
run_app()
# MUST set TESTDIR before calling those functions
run_app()
@@
-161,6
+157,14
@@
plan_tests $NUM_TESTS
print_test_banner "$TEST_DESC"
print_test_banner "$TEST_DESC"
+if [ -x "$CURDIR/.libs/lttng-ust-getcpu-override-test.so" ]; then
+ foundobj=1
+else
+ foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
TESTS=(
test_getcpu_override_fail
test_getcpu_override
TESTS=(
test_getcpu_override_fail
test_getcpu_override
This page took
0.025837 seconds
and
5
git commands to generate.