aboutsummaryrefslogtreecommitdiff
path: root/tests/test_hardware.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_hardware.c')
-rw-r--r--tests/test_hardware.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_hardware.c b/tests/test_hardware.c
index 34d07892..17c51da2 100644
--- a/tests/test_hardware.c
+++ b/tests/test_hardware.c
@@ -30,8 +30,12 @@ test_lzma_physmem(void)
static void
test_lzma_cputhreads(void)
{
+#ifndef MYTHREAD_ENABLED
+ assert_skip("Threading support disabed");
+#else
if (lzma_cputhreads() == 0)
assert_skip("Could not determine cpu core count");
+#endif
}