2024-04-12 17:26:06 -04:00
|
|
|
// Don't run UI tests on emulated environment or nightly build.
|
2022-01-04 15:32:48 -05:00
|
|
|
#[cfg(not(target_os = "android"))]
|
2024-04-12 17:26:06 -04:00
|
|
|
#[rustversion::attr(not(nightly), test)]
|
2020-01-20 04:52:33 -05:00
|
|
|
fn ui() {
|
|
|
|
// This environment variable tells build.rs that we're running trybuild tests,
|
|
|
|
// so it won't rebuild V8.
|
2022-01-21 22:10:38 -05:00
|
|
|
std::env::set_var("DENO_TRYBUILD", "1");
|
2020-01-20 04:52:33 -05:00
|
|
|
|
|
|
|
let t = trybuild::TestCases::new();
|
2020-06-03 01:38:34 -04:00
|
|
|
t.compile_fail("tests/compile_fail/*.rs");
|
2020-01-20 04:52:33 -05:00
|
|
|
}
|