Whitespace cleanup

This commit is contained in:
Brian Anderson 2011-08-03 16:25:38 -07:00
parent 89f2c43cf3
commit 2298a2b29f
3 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ rust_run_program(void* task, const char* argv[],
PROCESS_INFORMATION pi;
BOOL created = CreateProcess(NULL, cmd, NULL, NULL, TRUE,
0, NULL, NULL, &si, &pi);
CloseHandle(si.hStdInput);
CloseHandle(si.hStdOutput);
CloseHandle(si.hStdError);

View File

@ -113,7 +113,7 @@ fn run_pretty_test(cx: &cx, props: &test_props, testfile: &str) {
}
};
let actual = srcs.(ivec::len(srcs) - 1u);
if option::is_some(props.pp_exact) {
// Now we have to care about line endings
let cr = "\r";

View File

@ -31,19 +31,19 @@ fn test_pipes() {
pipe_in.in, pipe_out.out, pipe_err.out);
os::libc::close(pipe_in.in);
os::libc::close(pipe_out.out);
os::libc::close(pipe_err.out);
os::libc::close(pipe_err.out);
if pid == -1 { fail; }
let expected = "test";
writeclose(pipe_in.out, expected);
let actual = readclose(pipe_out.in);
readclose(pipe_err.in);
os::waitpid(pid);
log expected;
log actual;
assert expected == actual;
fn writeclose(fd: int, s: &str) {
let writer = io::new_writer(
io::fd_buf_writer(fd, option::none));