2011-07-18 23:03:28 -05:00
|
|
|
// xfail-stage0
|
|
|
|
|
|
|
|
use std;
|
|
|
|
import std::run;
|
|
|
|
|
|
|
|
// Regression test for memory leaks
|
2011-07-19 17:54:38 -05:00
|
|
|
// FIXME (714) Why does this fail on win32?
|
|
|
|
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
#[cfg(target_os = "macos")]
|
2011-07-18 23:03:28 -05:00
|
|
|
fn test_leaks() {
|
|
|
|
run::run_program("echo", []);
|
|
|
|
run::start_program("echo", []);
|
|
|
|
run::program_output("echo", []);
|
|
|
|
}
|
|
|
|
|
2011-07-19 17:54:38 -05:00
|
|
|
#[cfg(target_os = "win32")]
|
|
|
|
fn test_leaks() {}
|
|
|
|
|
2011-07-18 23:03:28 -05:00
|
|
|
fn main() {
|
|
|
|
test_leaks();
|
|
|
|
}
|