aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2008-07-30 02:25:59 -0400
committerAvatar Mike Kelly <pioto@pioto.org> 2008-07-30 02:25:59 -0400
commitede35ef695e16884dd9958e304aaf3080a20cc07 (patch)
treebeaee5f24700d55771450296a528d6168305b842
parent83d9a1a5ec5c4984c243a4d55d4d08c6d67c509b (diff)
downloadpaludis-ede35ef695e16884dd9958e304aaf3080a20cc07.tar.gz
paludis-ede35ef695e16884dd9958e304aaf3080a20cc07.tar.xz
Fix test for FreeBSD 7.
-rw-r--r--paludis/util/system_TEST.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/util/system_TEST.cc b/paludis/util/system_TEST.cc
index 8c8f63f..72baad9 100644
--- a/paludis/util/system_TEST.cc
+++ b/paludis/util/system_TEST.cc
@@ -25,6 +25,8 @@
#include <test/test_runner.hh>
#include <tr1/functional>
+#include <cctype>
+
#ifdef PALUDIS_ENABLE_THREADS
# include <sched.h>
#endif
@@ -116,7 +118,7 @@ namespace test_cases
TEST_CHECK('2' == kernel_version().at(0));
TEST_CHECK('.' == kernel_version().at(1));
#elif defined(__FreeBSD__)
- TEST_CHECK('6' == kernel_version().at(0));
+ TEST_CHECK(isdigit(kernel_version().at(0)));
TEST_CHECK('.' == kernel_version().at(1));
#else
# error You need to write a sanity test for kernel_version() for your platform.