[BUG] FileDirectory>>exists

Anthony Adachi adachipro at yahoo.com
Wed May 21 05:37:38 UTC 2003


Stephane Ducasse  wrote:

>  Could you send your tests as changeset plus put
[TEST] (marcus is it
>  correct?) so that marcus collect them?

I just submitted a change set (see [Test]
FileDirectoryTests) containing the additions and
modifications I added to FileDirectoryTests along with
the test Stephen Pair submitted. However, I forgot to
mention in the submission that the tests seem to be
broken only under Mac OS 9.1 and Mac OS X . Should I
follow this up with a note somehow to that [Test]
thread? 

I refactored some of the test code so it is more
isolated and gives more accurate results. As a result
a couple tests are no longer broken under Mac OS 9.1
(I don't know about OS X but I assume my modifcations
should give the same results on that OS). These are
below:

The reason why the 'FileDirectoryTests
>>testDeleteDirectory' test was failing earlier was
because of a problem with the FileDirectory >> exists
message returning true when it should of returned
false. I changed the method(s) it's assertion uses to
check that the directory was deleted.

'FileDirectoryTests >>testDirectoryExists' was failing
earlier on the Mac because it used the above test to
delete it's test fixture directory.

Still failing tests as of time of submission:
a. FileDirectoryTests >>testExists -breaks when
checking if a deleted directory 'exists'.
b. FileDirectoryTests >>
testDirectoryExistsWhenLikeNamedFileExists - as
explained by Stephen previously.
c. FileDirectoryTests >>
testAttemptExistenceCheckWhenFile - Files are not
directories and the 'exists' method should know that.

Thanks,

Anthony

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



More information about the Squeak-dev mailing list