xref: /freebsd/tools/test/stress2/testcases/README (revision 35c87c070a2d04f06c56578b0a4b2e9c13f62be5)
1All test programs must implement these three procedures:
2
3int setup(int nb)
4void cleanup(void)
5int test(void)
6
7The setup() procedure is called once before test() is called multiple times
8until timeout.  After timeout cleanup() is called.
9test() should periodically test the global variable done_testing and return.
10