aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-03-05 19:20:33 +0100
committerAvatar Gerrit Code Review <tomcat@galileo.mailstation.de> 2015-04-01 19:09:15 +0200
commit9abea5b01597ce7fdf2ba643f4e5a55530390d6d (patch)
treeb454cde52bc4b3c0d749ce97b3d3813c37cdd464
parent014406f270f4f2744f75deccb0acd45982d5aedc (diff)
downloadpaludis-9abea5b01597ce7fdf2ba643f4e5a55530390d6d.tar.gz
paludis-9abea5b01597ce7fdf2ba643f4e5a55530390d6d.tar.xz
Whitelist linux 4.0
-rw-r--r--paludis/util/system_TEST.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/util/system_TEST.cc b/paludis/util/system_TEST.cc
index f78419e..b1d2aff 100644
--- a/paludis/util/system_TEST.cc
+++ b/paludis/util/system_TEST.cc
@@ -50,7 +50,8 @@ TEST(KernelVersion, Works)
{
EXPECT_TRUE(! kernel_version().empty());
#ifdef __linux__
- EXPECT_TRUE('2' == kernel_version().at(0) || '3' == kernel_version().at(0));
+ char c = kernel_version().at(0);
+ EXPECT_TRUE(c >= '2' && c <= '4');
EXPECT_TRUE('.' == kernel_version().at(1));
#elif defined(__FreeBSD__)
EXPECT_TRUE(isdigit(kernel_version().at(0)));