From d440c3f50a918a932293ad98bcec96eaa4683222 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 4 Dec 2011 01:19:09 -0800 Subject: Reworked some things in the architecture, mainly exceptions and asserts. -) Removed Assert() -) Added AAssert(), IAssert(), RAssert(), TAssert() and Failure() -) Reworked all asserts in the code, and added meaningful messages to them. -) Changed the way the startup code is generated; BALAU_STARTUP is no longer necessary. --- tests/test-Sanity.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/test-Sanity.cc') diff --git a/tests/test-Sanity.cc b/tests/test-Sanity.cc index 9ed9b4e..22120ab 100644 --- a/tests/test-Sanity.cc +++ b/tests/test-Sanity.cc @@ -1,15 +1,13 @@ #include -BALAU_STARTUP; - using namespace Balau; void MainTask::Do() { Printer::log(M_STATUS, "Test::Sanity running."); - Assert(sizeof(off_t) == 8); - Assert(sizeof(size_t) == 4); - Assert(sizeof(time_t) == 4); + TAssert(sizeof(off_t) == 8); + TAssert(sizeof(size_t) == 4); + TAssert(sizeof(time_t) == 4); Printer::log(M_STATUS, "Test::Sanity passed."); } -- cgit v1.2.3