TESTING "Resourcecollector" ./test-resourcecollector


TEST "basic register, destroy" basic <<END
out: unregistering memory handler
return: 0
END

TEST "memory success" memory_collection_mockup 1 <<END
out: unregistering memory handler
return: 0
END

TEST "memory success, 2nd try" memory_collection_mockup 2 <<END
out: memory handler got called
out: unregistering memory handler
return: 0
END

TEST "memory panic" memory_collection_mockup 10 <<END
return: 1
END
