Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
4lDO2
acid
Commits
23f555fb
Commit
23f555fb
authored
Sep 25, 2018
by
Jeremy Soller
Browse files
Fix thread test use of sh
parent
033ab207
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
23f555fb
...
...
@@ -111,7 +111,7 @@ fn thread_test() -> Result<(), String> {
let
mut
sub_threads
=
Vec
::
new
();
for
j
in
0
..
10
{
sub_threads
.push
(
thread
::
spawn
(
move
||
{
Command
::
new
(
"
sh
"
)
Command
::
new
(
"
ion
"
)
.arg
(
"-c"
)
.arg
(
&
format!
(
"echo {}:{}"
,
i
,
j
))
.spawn
()
.unwrap
()
...
...
@@ -119,7 +119,7 @@ fn thread_test() -> Result<(), String> {
}));
}
Command
::
new
(
"
sh
"
)
Command
::
new
(
"
ion
"
)
.arg
(
"-c"
)
.arg
(
&
format!
(
"echo {}"
,
i
))
.spawn
()
.unwrap
()
...
...
Write
Preview
Supports
Markdown
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