Skip to content

Commit c1cafed

Browse files
committed
Fix expandtest
1 parent e594fda commit c1cafed

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ jobs:
6767
run: |
6868
rustup target add thumbv7m-none-eabi
6969
- name: cargo test
70+
if: matrix.rust != 'nightly'
7071
run: |
71-
cargo test --all --all-features
72+
cargo test --all --all-features --exclude expandtest
7273
- name: cargo test --test compiletest
7374
if: matrix.rust == 'nightly'
7475
run: |
75-
cargo test -p pin-project --all-features --test compiletest -- --ignored
76+
cargo test --all --all-features -- -Zunstable-options --include-ignored
7677
- name: cargo check --target thumbv7m-none-eabi
7778
if: matrix.rust == 'nightly'
7879
run: |

tests/expand/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ publish = false
99

1010
[dev-dependencies]
1111
pin-project = { path = "../.." }
12-
macrotest = "1.0"
12+
macrotest = "1.0.2"

tests/expand/tests/expandtest.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
#[cfg_attr(any(not(cargo_expand), all(ci, not(target_os = "linux"))), ignore)]
55
#[test]
66
fn expandtest() {
7+
#[cfg(ci)]
8+
macrotest::expand_without_refresh("tests/expand/*.rs");
9+
#[cfg(not(ci))]
710
macrotest::expand("tests/expand/*.rs");
811
}

0 commit comments

Comments
 (0)