Making Programs Fail
Some techniques that you can use to exercise potential bugs:
- make array sizes tiny
- make a hash table put everything into one bucket
- write a special
malloc that fails at random
- initialize data structures with a value other than zero
- test all possible combinations of parameters settings
- test on different compilers/machines/operating systems
|