in reply to Re: Unit testing built-in functions
in thread Unit testing built-in functions
I believe you misunderstood. The OP wants to override unlink so he can test how the script handles errors from unlink. He's not asking how to check if unlink returned an error.
We do something similar at my workplace. In our test environment, we hook into the OS to control the exit codes returned by the disk reading function, the analog input reading function, the analog output writing function, etc. to ensure that our software properly handles those errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unit testing built-in functions
by aijin (Monk) on Nov 09, 2006 at 01:07 UTC |