in reply to Re: Test code that makes filesystem modifications?
in thread Test code that makes filesystem modifications?

It is just a matter of creating and deleting files in the tmp directory, although the following negative possibilities exist:

In any event, I've decided to do this: First off, this side steps my nervousness. Second, the test suite will probably comprise somewhere around 50,000 to 200,000 tests, and may take on the order of an hour to run! I've decided that one of the purposes of an exhaustive test suite is to be very sure there are no latent bugs in my core logic. I've found so many bugs caused by my insufficiently thorough understanding of exactly how Microsoft implements permission inheritance that I've written fairly efficient code to test the biggest conceivable envelopes. As in, here's 40 permissions. Apply every possible combination of them to a directory tree that's three deep and check that my code _never_ reports a wrong or missing inherited permission. 40*40*40 = 64,000. I may scale this back a little:).

--Toby Ovod-Everett

  • Comment on Re: Re: Test code that makes filesystem modifications?