1 This document defines the coverage of testing for all assertions. 2 3 Assertion Tested? 4 1 YES - Noticing interesting things in the amount of time 5 actually slept. Maybe should investigate this 6 further. 7 2 YES 8 3 YES 9 4 YES 10 5 YES 11 6 YES 12 7 YES - Decided not to test when rmtp = NULL. Seems not 13 relevant. 14 10000 (bounds) YES - Made tests for a variety of boundary conditions. 15 16 17 The algorithm for calculating the amount of time slept is noted below. 18 [Used in 1-1.c, 2-1.c, 10000-1.c] 19 20 STARTSEC, STARTNSEC = the start time, seconds and nanoseconds, respectively 21 FINISHSEC, FINISHNSEC = the finish time, seconds and nanoseconds, respectively 22 slepts, sleptns = amount of seconds and nanoseconds slept, respectively 23 24 slepts=FINISHSEC - STARTSEC; 25 sleptns=FINISHNSEC - STARTNSEC; 26 if (sleptns < 0) { 27 sleptns = sleptns+1000000000; 28 slepts = slepts-1; 29 } 30 31