diff options
Diffstat (limited to 'cli/tests/std_tests.rs')
-rw-r--r-- | cli/tests/std_tests.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cli/tests/std_tests.rs b/cli/tests/std_tests.rs deleted file mode 100644 index f5b1f1998..000000000 --- a/cli/tests/std_tests.rs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -mod tests { - extern crate lazy_static; - extern crate tempfile; - use deno::test_util::*; - use std::process::Command; - use tempfile::TempDir; - - #[test] - fn std_tests() { - let dir = TempDir::new().expect("tempdir fail"); - let mut deno_cmd = Command::new(deno_exe_path()); - deno_cmd.env("DENO_DIR", dir.path()); - - let mut cwd = root_path(); - cwd.push("std"); - let mut deno = deno_cmd - .current_dir(cwd) // note: std tests expect to run from "std" dir - .arg("test") - .arg("--unstable") - .arg("--seed=86") // Some tests rely on specific random numbers. - .arg("-A") - // .arg("-Ldebug") - .spawn() - .expect("failed to spawn script"); - let status = deno.wait().expect("failed to wait for the child process"); - assert!(status.success()); - } -} |