summaryrefslogtreecommitdiff
path: root/tests/all/channel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/all/channel.rs')
-rw-r--r--tests/all/channel.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/all/channel.rs b/tests/all/channel.rs
index 9abde76..9d4ec82 100644
--- a/tests/all/channel.rs
+++ b/tests/all/channel.rs
@@ -65,6 +65,18 @@ fn reading_data() {
}
#[test]
+fn handle_extended_data() {
+ let sess = ::authed_session();
+ let mut channel = sess.channel_session().unwrap();
+ channel
+ .handle_extended_data(ssh2::ExtendedData::Merge)
+ .unwrap();
+ channel.exec("echo foo >&2").unwrap();
+ let (output, _) = consume_stdio(&mut channel);
+ assert_eq!(output, "foo\n");
+}
+
+#[test]
fn writing_data() {
let sess = ::authed_session();
let mut channel = sess.channel_session().unwrap();