mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 21:47:00 -04:00
Fix unused import warning (#875)
This commit is contained in:
parent
f77ab69834
commit
8e9fd60e79
1 changed files with 1 additions and 3 deletions
|
@ -1,12 +1,10 @@
|
||||||
use std::env;
|
|
||||||
|
|
||||||
// Don't run UI tests on emulated environment.
|
// Don't run UI tests on emulated environment.
|
||||||
#[cfg(not(target_os = "android"))]
|
#[cfg(not(target_os = "android"))]
|
||||||
#[test]
|
#[test]
|
||||||
fn ui() {
|
fn ui() {
|
||||||
// This environment variable tells build.rs that we're running trybuild tests,
|
// This environment variable tells build.rs that we're running trybuild tests,
|
||||||
// so it won't rebuild V8.
|
// so it won't rebuild V8.
|
||||||
env::set_var("DENO_TRYBUILD", "1");
|
std::env::set_var("DENO_TRYBUILD", "1");
|
||||||
|
|
||||||
let t = trybuild::TestCases::new();
|
let t = trybuild::TestCases::new();
|
||||||
t.compile_fail("tests/compile_fail/*.rs");
|
t.compile_fail("tests/compile_fail/*.rs");
|
||||||
|
|
Loading…
Add table
Reference in a new issue