I've put the testing programs that we used for marking in the file:

/home/cs1927/web/16s2/ass/ass1/tests.tar

To use it, do the following:
* make a directory to do the testing in
* change into that directory and extract the tests from the above file
* copy your allocator.c into that directory
* run make and then run each of ./test N files that's produced

----------

Here is where you can post any awesome test cases that you come up with. Put them in the comments (and use Code formatting).

Here's a very simple test case: run vlad with the default memory size (4096) and try

!
+ a 4100
+ a 4080
+ a 4000
!
- a
!

The first two allocs should fail (for different reasons), and the third one should succeed. The ! 's assume that you've put something in vlad_stats() .

Resource created Tuesday 02 August 2016, 11:39:31 PM, last modified Friday 21 October 2016, 02:58:25 PM.


Back to top

COMP1927 16s2 (Computing 2) is powered by WebCMS3
CRICOS Provider No. 00098G