jruby/jruby — pull request #105 by klauern (2011-12-14 14:06:00+00:00)
Title: fix test/test_file#test_file_uri_stat on WinXP

The if statement should be broken down into two parts so an else clause
can throw an exception for file not found errors as it does throughout the
rest of the method.

Fixes the following test failures on WinXP when running `bin\jruby.bat test\test_file.rb`:

```
2) Failure:
test_file_stat_uri_prefixes(TestFile) [.\test\test_file.rb:556]:
[Errno::ENOENT] exception expected, not
Class:
Message: <"Unknown error - Unknown Error (20047) - C:/klauer-jruby/file:">
---Backtrace---
org/jruby/RubyFile.java:1516:in `lstat'
.\test\test_file.rb:557:in `test_file_stat_uri_prefixes'
---------------

3) Failure:
test_file_time_uri_prefixes(TestFile) [.\test\test_file.rb:573]:
[Errno::ENOENT] exception expected, not
Class:
Message: <"Unknown error - Unknown Error (20047) - C:/klauer-jruby/file:">
---Backtrace---
org/jruby/RubyFile.java:1528:in `atime'
.\test\test_file.rb:574:in `test_file_time_uri_prefixes'
---------------
```