diff options
author | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-20 00:08:06 -0800 |
---|---|---|
committer | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-20 00:08:06 -0800 |
commit | 888f6f500125a81a8f7d8a792238149ecd9b4055 (patch) | |
tree | c607fcf8343a86a21efd415a5b3e0b5962f99575 /tests | |
parent | fd77a467478938e0b0fd7b821d516a83827a3a61 (diff) |
Fixing sanity test for 64 bits.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Sanity.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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."); } |