LUMIERA.clone/tests/20resourcecollector.tests
Christian Thaeter 369c644ab4 Basic resourcecollector implementation
Lets one register callback functions which to incrementally cleanup unused
resources.
2008-12-15 01:17:23 +01:00

22 lines
463 B
Text

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