Skip to content

Commit

Permalink
Fix expandtest
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed May 10, 2020
1 parent e594fda commit c1cafed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ jobs:
run: |
rustup target add thumbv7m-none-eabi
- name: cargo test
if: matrix.rust != 'nightly'
run: |
cargo test --all --all-features
cargo test --all --all-features --exclude expandtest
- name: cargo test --test compiletest
if: matrix.rust == 'nightly'
run: |
cargo test -p pin-project --all-features --test compiletest -- --ignored
cargo test --all --all-features -- -Zunstable-options --include-ignored
- name: cargo check --target thumbv7m-none-eabi
if: matrix.rust == 'nightly'
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/expand/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ publish = false

[dev-dependencies]
pin-project = { path = "../.." }
macrotest = "1.0"
macrotest = "1.0.2"
3 changes: 3 additions & 0 deletions tests/expand/tests/expandtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
#[cfg_attr(any(not(cargo_expand), all(ci, not(target_os = "linux"))), ignore)]
#[test]
fn expandtest() {
#[cfg(ci)]
macrotest::expand_without_refresh("tests/expand/*.rs");
#[cfg(not(ci))]
macrotest::expand("tests/expand/*.rs");
}

0 comments on commit c1cafed

Please sign in to comment.