diff -r cfe800908837 -r cebfc7eeafa5 tests/main.cpp --- a/tests/main.cpp Mon Aug 26 23:18:03 2013 -0700 +++ b/tests/main.cpp Tue Aug 27 00:49:33 2013 -0700 @@ -30,6 +30,7 @@ #include #include #include +#include #include "runner.h" using namespace ke; @@ -40,6 +41,10 @@ { Test *test = Test::first(); while (test) { + if (argc >= 2 && strcmp(argv[1], test->name()) != 0) { + test = test->next(); + continue; + } fprintf(stdout, "Testing %s... \n", test->name()); if (!test->Run()) { fprintf(stdout, "TEST:%s FAIL\n", test->name()); @@ -61,8 +66,18 @@ return malloc(amount); } +void *operator new[](size_t amount) +{ + return malloc(amount); +} + void operator delete(void *p) { free(p); } + +void operator delete[](void *p) +{ + free(p); +} #endif