From 888f6f500125a81a8f7d8a792238149ecd9b4055 Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Sun, 20 Jan 2013 00:08:06 -0800 Subject: Fixing sanity test for 64 bits. --- tests/test-Sanity.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test-Sanity.cc b/tests/test-Sanity.cc index 22120ab..35fe18b 100644 --- a/tests/test-Sanity.cc +++ b/tests/test-Sanity.cc @@ -6,8 +6,13 @@ void MainTask::Do() { Printer::log(M_STATUS, "Test::Sanity running."); TAssert(sizeof(off_t) == 8); +#ifdef __x86_64__ + TAssert(sizeof(size_t) == 8); + TAssert(sizeof(time_t) == 8); +#else TAssert(sizeof(size_t) == 4); TAssert(sizeof(time_t) == 4); +#endif Printer::log(M_STATUS, "Test::Sanity passed."); } -- cgit v1.2.3