std: writing to stdout only works when using -1 offset..

This commit is contained in:
Jeff Olson 2013-08-21 10:29:51 -07:00
parent a7ee85b50b
commit c3a819b01c

View file

@ -416,7 +416,7 @@ mod test {
let stdout = FileDescriptor(STDOUT_FILENO);
let write_val = input.as_bytes();
let write_buf = slice_to_uv_buf(write_val);
stdout.write_sync(loop_, write_buf, 0);
stdout.write_sync(loop_, write_buf, -1);
}
#[test]