another nil arg test

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-10-04 05:33:40 +00:00
parent f3901684e8
commit 4b08c19756

View file

@ -96,6 +96,9 @@ int main()
"resourceSpecifier of /usr is //localhost/usr/");
#endif
PASS_EXCEPTION([[NSURL alloc] initFileURLWithPath: nil isDir: YES],
NSInvalidArgumentException,
"nil is an invalid argument for -initFileURLWithPath:isDir:");
PASS_EXCEPTION([[NSURL alloc] initFileURLWithPath: nil],
NSInvalidArgumentException,
"nil is an invalid argument for -initFileURLWithPath:");