Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
470ea850
Commit
470ea850
authored
5 years ago
by
Marcus Comstedt
Browse files
Options
Downloads
Patches
Plain Diff
Protocols.WebSocket: Skip WebSocket.test if no threads
parent
6218af87
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Protocols.pmod/WebSocket.test
+11
-0
11 additions, 0 deletions
lib/modules/Protocols.pmod/WebSocket.test
with
11 additions
and
0 deletions
lib/modules/Protocols.pmod/WebSocket.test
+
11
−
0
View file @
470ea850
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
// WebSocket testsuite
// WebSocket testsuite
//
//
#if constant(Thread.Thread)
constant
loopback
=
"127.0.0.1"
;
constant
loopback
=
"127.0.0.1"
;
int
successes
;
int
successes
;
...
@@ -306,3 +308,12 @@ int main(int argc, array(string) argv)
...
@@ -306,3 +308,12 @@ int main(int argc, array(string) argv)
Thread
.
thread_create
(
run_tests
);
Thread
.
thread_create
(
run_tests
);
return
-
1
;
return
-
1
;
}
}
#else
int
main
(
int
argc
,
array
(
string
)
argv
)
{
Tools
.
Testsuite
.
report_result
(
0
,
0
,
1
);
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment