[kutil] Fix failing heap allocator tests

The tests clearly haven't even been built in a while. I've added a
helper script to the project root. Also added a kassert() handler that
will allow tests to catch or fail on asserts.
This commit is contained in:
2020-09-07 16:56:07 -07:00
parent 8534d8d3c5
commit 8490472581
6 changed files with 72 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ ListContainsMatcher<T> ListContains(const list_node<T> &item)
return ListContainsMatcher<T>(item);
}
TEST_CASE( "Linked list tests", "[containers list]" )
TEST_CASE( "Linked list tests", "[containers] [list]" )
{
linked_list<unsortableT> ulist;
@@ -144,7 +144,7 @@ TEST_CASE( "Linked list tests", "[containers list]" )
CHECK_THAT( ulist_reversed, !ListContains(removed) );
}
TEST_CASE( "Sorted list tests", "[containers list]" )
TEST_CASE( "Sorted list tests", "[containers] [list]" )
{
using clock = std::chrono::system_clock;
unsigned seed = clock::now().time_since_epoch().count();