diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-03 16:25:38 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-03 16:25:38 -0700 |
| commit | 2298a2b29f5efba7b3d107b2bc86dfc4a0d56547 (patch) | |
| tree | 33b806584f18245c2b6a0e7db1d5ffa79a8d46f0 | |
| parent | 89f2c43cf3288cab664fc5a3ff55fa76e1c3ac21 (diff) | |
| download | rust-2298a2b29f5efba7b3d107b2bc86dfc4a0d56547.tar.gz rust-2298a2b29f5efba7b3d107b2bc86dfc4a0d56547.zip | |
Whitespace cleanup
| -rw-r--r-- | src/rt/rust_run_program.cpp | 2 | ||||
| -rw-r--r-- | src/test/compiletest/runtest.rs | 2 | ||||
| -rw-r--r-- | src/test/stdtest/run.rs | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/rt/rust_run_program.cpp b/src/rt/rust_run_program.cpp index 69f3cf7e146..86fd9963b9d 100644 --- a/src/rt/rust_run_program.cpp +++ b/src/rt/rust_run_program.cpp @@ -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); diff --git a/src/test/compiletest/runtest.rs b/src/test/compiletest/runtest.rs index cedfb708cfa..6a7056b3544 100644 --- a/src/test/compiletest/runtest.rs +++ b/src/test/compiletest/runtest.rs @@ -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"; diff --git a/src/test/stdtest/run.rs b/src/test/stdtest/run.rs index 2adfbbe173e..1be8cdf9b37 100644 --- a/src/test/stdtest/run.rs +++ b/src/test/stdtest/run.rs @@ -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)); |
