diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-09 13:04:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-09 13:04:23 +0900 |
| commit | d88d7aaf4b3c994d5f1e8903fb4b14752981f721 (patch) | |
| tree | 6bbb10adc0b297202c2ab1fb7aec757775ef3ffd /mrbgems/mruby-io/test/file.rb | |
| parent | 81862fd689372dc31a0f0e71995e4cd6f771aea6 (diff) | |
| download | mruby-d88d7aaf4b3c994d5f1e8903fb4b14752981f721.tar.gz mruby-d88d7aaf4b3c994d5f1e8903fb4b14752981f721.zip | |
Use `$mrbtest_io_wfname` for `chmod` test.
Diffstat (limited to 'mrbgems/mruby-io/test/file.rb')
| -rw-r--r-- | mrbgems/mruby-io/test/file.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-io/test/file.rb b/mrbgems/mruby-io/test/file.rb index ca285f5bd..8d2be04c8 100644 --- a/mrbgems/mruby-io/test/file.rb +++ b/mrbgems/mruby-io/test/file.rb @@ -200,11 +200,11 @@ assert('File.symlink') do end assert('File.chmod') do - File.open('chmod-test', 'w') {} + File.open("#{$mrbtest_io_wfname}.chmod-test", 'w') {} begin - assert_equal 1, File.chmod(0400, 'chmod-test') + assert_equal 1, File.chmod(0400, "#{$mrbtest_io_wfname}.chmod-test") ensure - File.delete('chmod-test') + File.delete("#{$mrbtest_io_wfname}.chmod-test") end end |
