Skip to content

Commit

Permalink
add cfg condition for execution tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 20, 2023
1 parent 9a0637e commit 72b0af4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cargo/tests/run/simple.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::ffi::OsStr;
use std::ffi::OsString;
use std::fs::File;
Expand Down Expand Up @@ -95,6 +97,8 @@ fn test_value() -> String {


#[test]
#[cfg_attr(not(exec_tests),
ignore = "execution tests not requested, set RUSTFLAGS='--cfg exec_tests' to enable.")]
#[cfg_attr(not(target_os = "macos"),
ignore = "Simulator as headless works on mac and maybe on windows.")]
fn run_metadata_workspace_root_dev() -> Result<()> {
Expand All @@ -108,6 +112,8 @@ fn run_metadata_workspace_root_dev() -> Result<()> {
}

#[test]
#[cfg_attr(not(exec_tests),
ignore = "execution tests not requested, set RUSTFLAGS='--cfg exec_tests' to enable.")]
#[cfg_attr(not(target_os = "macos"),
ignore = "Simulator as headless works on mac and maybe on windows.")]
fn run_metadata_workspace_root_release() -> Result<()> {
Expand Down

0 comments on commit 72b0af4

Please sign in to comment.