File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ use crate::future::Future;
20
20
use crate :: task:: Poll ;
21
21
use std:: ffi:: OsStr ;
22
22
23
- struct Child {
23
+ pub struct Child {
24
24
stdin : Option < ChildStdin > ,
25
25
stdout : Option < ChildStdout > ,
26
26
stderr : Option < ChildStderr > ,
@@ -51,20 +51,25 @@ struct ChildStdin;
51
51
struct ChildStdout ;
52
52
struct ChildStderr ;
53
53
54
- struct Command ;
54
+ pub struct Command ;
55
55
56
56
impl Command {
57
- fn new < S : AsRef < OsStr > > ( program : S ) -> Command {
57
+ pub fn new < S : AsRef < OsStr > > ( program : S ) -> Command {
58
58
unimplemented ! ( ) ;
59
59
}
60
60
/// ```
61
+ /// # fn main() -> std::io::Result<()> { async_std::task::block_on(async {
62
+ /// #
63
+ /// use async_std::process::Command;
61
64
/// let child = Command::new("ls").spawn();
62
65
/// let future = child.expect("failed to spawn child");
63
66
/// let result = future.await?;
64
- /// assert!(! result.empty ());
67
+ /// assert!(result.success ());
65
68
/// assert!(false);
69
+ /// #
70
+ /// # Ok(()) }) }
66
71
/// ```
67
- fn spawn ( & mut self ) -> io:: Result < Child > {
72
+ pub fn spawn ( & mut self ) -> io:: Result < Child > {
68
73
unimplemented ! ( ) ;
69
74
}
70
75
}
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ fn test_buffered_writer() {
47
47
} )
48
48
}
49
49
50
- #[ ignore]
51
50
#[ test]
52
51
fn test_buffered_writer_inner_into_inner_does_not_flush ( ) {
53
52
task:: block_on ( async {
You can’t perform that action at this time.
0 commit comments