0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-03-10 05:56:52 -04:00
rusty-v8/tests/test_ui.rs
2025-02-26 00:28:58 +01:00

17 lines
512 B
Rust

// Don't run UI tests on emulated environment or nightly build.
#[cfg(not(target_os = "android"))]
#[rustversion::attr(not(nightly), test)]
fn ui() {
// This environment variable tells build.rs that we're running trybuild tests,
// so it won't rebuild V8.
unsafe {
std::env::set_var("DENO_TRYBUILD", "1");
std::env::set_var(
"RUSTY_V8_SRC_BINDING_PATH",
env!("RUSTY_V8_SRC_BINDING_PATH"),
);
}
let t = trybuild::TestCases::new();
t.compile_fail("tests/compile_fail/*.rs");
}