Skip to content

Commit 7a32d9e

Browse files
committed
enable strict provenance for more tests
1 parent 0fbb163 commit 7a32d9e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ci-test.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ core)
2727
2>&1 | ts -i '%.s '
2828
echo "::endgroup::"
2929
# Cannot use strict provenance as there are int-to-ptr casts in the doctests.
30+
# FIXME: Once <https://github.com/rust-lang/rust/pull/95583> lands, the only
31+
# one that is left is `primitive_docs.rs - prim_fn`, which I am sure we
32+
# can find some solution for.
3033
echo "::group::Testing core docs ($TARGET)" && echo
3134
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
3235
./run-test.sh core --target $TARGET --doc \
@@ -57,21 +60,21 @@ std)
5760
# These are the most OS-specific (among the modules we do not skip).
5861
CORE="time:: sync:: thread:: env::"
5962

60-
# hashbrown and some other things do int2ptr casts, so we need permissive provenance.
6163
for TARGET in x86_64-unknown-linux-gnu aarch64-apple-darwin; do
62-
echo "::group::Testing std core ($CORE on $TARGET)"
63-
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation -Zmiri-permissive-provenance" \
64+
echo "::group::Testing std core ($CORE on $TARGET, strict provenance)"
65+
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-disable-isolation -Zmiri-strict-provenance" \
6466
./run-test.sh std --target $TARGET --lib --tests \
6567
-- $CORE \
6668
2>&1 | ts -i '%.s '
6769
echo "::endgroup::"
68-
echo "::group::Testing std core docs ($CORE on $TARGET)"
69-
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation -Zmiri-permissive-provenance" \
70+
echo "::group::Testing std core docs ($CORE on $TARGET, strict provenance)"
71+
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation -Zmiri-strict-provenance" \
7072
./run-test.sh std --target $TARGET --doc \
7173
-- $CORE \
7274
2>&1 | ts -i '%.s '
7375
echo "::endgroup::"
7476
done
77+
# hashbrown and some other things do int2ptr casts, so we need permissive provenance.
7578
# "sleep" has a thread leak that we have to ignore
7679
echo "::group::Testing remaining std (except for $SKIP)"
7780
MIRIFLAGS="$DEFAULTFLAGS -Zmiri-ignore-leaks -Zmiri-disable-isolation -Zmiri-permissive-provenance" \

0 commit comments

Comments
 (0)