Next: , Previous: docommand, Up: Writing new test cases


10.2.3 remove

The remove function is for clearing up temporary files after tests have finished, and for making sure that no instance of a file that a test is supposed to create already exists before the test is made. Typical usage is this:-

     f=1test
     s=s.$f
     p=p.$f
     remove $f $s $p

The remove function is defined as:-

     remove () { rm -rf $* || miscarry Could not remove $* ; }