summaryrefslogtreecommitdiff
path: root/tests/test-Sanity.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-12-04 01:19:09 -0800
committerPixel <pixel@nobis-crew.org>2011-12-04 01:20:10 -0800
commitd440c3f50a918a932293ad98bcec96eaa4683222 (patch)
tree33e8e42a8e4506ae9da70cdb44dd133bde7f7219 /tests/test-Sanity.cc
parente5577eb7a643ce7885e5d14660a6d24254161622 (diff)
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.
Diffstat (limited to 'tests/test-Sanity.cc')
-rw-r--r--tests/test-Sanity.cc8
1 files changed, 3 insertions, 5 deletions
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 <Main.h>
-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.");
}