projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: ifdef linux specific cpu count compat
[userspace-rcu.git]
/
tests
/
unit
/
test_get_max_cpuid_from_sysfs_cxx
diff --git
a/tests/unit/test_get_max_cpuid_from_sysfs_cxx
b/tests/unit/test_get_max_cpuid_from_sysfs_cxx
index 886c065bef8db682f93f01e7fa8785579eaf55c2..db99094f7157702a3d2331b35cce8d7e4da8fb9e 100755
(executable)
--- a/
tests/unit/test_get_max_cpuid_from_sysfs_cxx
+++ b/
tests/unit/test_get_max_cpuid_from_sysfs_cxx
@@
-44,46
+44,50
@@
test_get_max_cpuid_from_sysfs_cxx() {
rm -rf "$TESTDIR"
}
rm -rf "$TESTDIR"
}
-plan_tests $NUM_TESTS
+if [ "$URCU_TESTS_OS_TYPE" == "linux" ]; then
+ plan_tests $NUM_TESTS
-diag "get_max_cpuid_from_sysfs_cxx"
+
diag "get_max_cpuid_from_sysfs_cxx"
-test_data=(0 "cpu0")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(0 "cpu0")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(1 "cpu0" "cpu1")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(1 "cpu0" "cpu1")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(1 "cpu1" "cpu0")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(1 "cpu1" "cpu0")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(3 "cpu3")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(3 "cpu3")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(99 "cpu99")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(99 "cpu99")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(3 "cpu0" "cpu3")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(3 "cpu0" "cpu3")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(3 "cpufreq" "cpuidle" "cpu0" "cpu1" "cpu2" "cpu3")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(3 "cpufreq" "cpuidle" "cpu0" "cpu1" "cpu2" "cpu3")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(0 "cpu" "cpu0")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(0 "cpu" "cpu0")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(5 "cpu" "cpu5")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(5 "cpu" "cpu5")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(-1 "toto")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(-1 "toto")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(-1 "cpu")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(-1 "cpu")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(-1 "cpua" "cpud")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+
test_data=(-1 "cpua" "cpud")
+
test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
-test_data=(-1 "cpufreq" "cpuidle")
-test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+ test_data=(-1 "cpufreq" "cpuidle")
+ test_get_max_cpuid_from_sysfs_cxx "${test_data[@]}"
+else
+ plan_skip_all "Linux specific tests."
+fi
This page took
0.024506 seconds
and
4
git commands to generate.