Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
filetests shouldn't die on non-existant files.
Also added tests to t/spectest.data.
  • Loading branch information
moritz committed Feb 7, 2009
1 parent a26b223 commit 6211ae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/builtins/any-str.pir
Expand Up @@ -221,8 +221,10 @@ directory.
.local string filename
filename = self

push_eh not_a_dir
$I0 = stat filename, 2
if $I0 goto file_is_a_dir
not_a_dir:
$P0 = get_hll_global ['Bool'], 'False'
.return ($P0)
file_is_a_dir:
Expand Down Expand Up @@ -270,6 +272,7 @@ file.
.local string filename
filename = self

push_eh file_isnt_plain
$I0 = stat filename, 2
if $I0 goto file_isnt_plain
$P0 = get_hll_global ['Bool'], 'True'
Expand Down
1 change: 1 addition & 0 deletions t/spectest.data
Expand Up @@ -244,6 +244,7 @@ S12-role/parameterized-mixin.t
S12-role/parameterized-type.t
S12-subset/multi-dispatch.t
S12-subset/subtypes.t
S16-filehandles/filetest.t
S16-filehandles/io.t
S16-filehandles/io_in_for_loops.t
S16-filehandles/io_in_while_loops.t
Expand Down

0 comments on commit 6211ae2

Please sign in to comment.