Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
3760f58d
Unverified
Commit
3760f58d
authored
Apr 16, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Apr 16, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4383 from Shokuji/fix_mruby-io_test
Fix test in mruby-io
parents
4e3e4260
cdfeb538
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-io/test/io.rb
mrbgems/mruby-io/test/io.rb
+3
-3
No files found.
mrbgems/mruby-io/test/io.rb
View file @
3760f58d
...
...
@@ -3,7 +3,7 @@
assert
(
'IO TEST SETUP'
)
do
MRubyIOTestUtil
.
io_test_setup
$cr
=
MRubyIOTestUtil
.
win?
?
1
:
0
# "\n" include CR or not
$cr
,
$crlf
,
$cmd
=
MRubyIOTestUtil
.
win?
?
[
1
,
"
\r\n
"
,
"cmd /c "
]
:
[
0
,
"
\n
"
,
""
]
end
assert
(
'IO'
,
'15.2.20'
)
do
...
...
@@ -419,7 +419,7 @@ end
assert
(
'IO.popen'
)
do
begin
$?
=
nil
io
=
IO
.
popen
(
"echo mruby-io"
)
io
=
IO
.
popen
(
"
#{
$cmd
}
echo mruby-io"
)
assert_true
io
.
close_on_exec?
assert_equal
Fixnum
,
io
.
pid
.
class
...
...
@@ -598,7 +598,7 @@ end
assert
(
'`cmd`'
)
do
begin
assert_equal
`
echo foo`
,
"foo
\n
"
assert_equal
`
#{
$cmd
}
echo foo`
,
"foo
#{
$crlf
}
"
rescue
NotImplementedError
=>
e
skip
e
.
message
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment