Your unit tests could also check for both the existance before the unlink, and non-existence afterward ...if( unlink( $filename ) != 1 ){ die "couldn't unlink '$filename': $!; } # or: unlink( $filename ) or die "couldn't unlink '$filename': $!;
In reply to Re: Unit testing built-in functions
by davidrw
in thread Unit testing built-in functions
by aijin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |