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
bce811a5
Commit
bce811a5
authored
7 years ago
by
Hiroshi Mimaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabled UNIXSocket test on Cygwin
parent
6b096926
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
mrbgems/mruby-socket/test/sockettest.c
mrbgems/mruby-socket/test/sockettest.c
+11
-0
mrbgems/mruby-socket/test/unix.rb
mrbgems/mruby-socket/test/unix.rb
+1
-1
No files found.
mrbgems/mruby-socket/test/sockettest.c
View file @
bce811a5
...
@@ -26,10 +26,21 @@ mrb_sockettest_win_p(mrb_state *mrb, mrb_value klass)
...
@@ -26,10 +26,21 @@ mrb_sockettest_win_p(mrb_state *mrb, mrb_value klass)
#endif
#endif
}
}
mrb_value
mrb_sockettest_cygwin_p
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
#if defined(__CYGWIN__) || defined(__CYGWIN32__)
return
mrb_true_value
();
#else
return
mrb_false_value
();
#endif
}
void
void
mrb_mruby_socket_gem_test
(
mrb_state
*
mrb
)
mrb_mruby_socket_gem_test
(
mrb_state
*
mrb
)
{
{
struct
RClass
*
c
=
mrb_define_module
(
mrb
,
"SocketTest"
);
struct
RClass
*
c
=
mrb_define_module
(
mrb
,
"SocketTest"
);
mrb_define_class_method
(
mrb
,
c
,
"tmppath"
,
mrb_sockettest_tmppath
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
c
,
"tmppath"
,
mrb_sockettest_tmppath
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
c
,
"win?"
,
mrb_sockettest_win_p
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
c
,
"win?"
,
mrb_sockettest_win_p
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
c
,
"cygwin?"
,
mrb_sockettest_cygwin_p
,
MRB_ARGS_NONE
());
}
}
This diff is collapsed.
Click to expand it.
mrbgems/mruby-socket/test/unix.rb
View file @
bce811a5
unless
SocketTest
.
win?
unless
SocketTest
.
win?
||
SocketTest
.
cygwin?
def
unixserver_test_block
def
unixserver_test_block
path
=
SocketTest
.
tmppath
path
=
SocketTest
.
tmppath
...
...
This diff is collapsed.
Click to expand it.
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