Skip to content

Commit 2a92157

Browse files
committed
debug on AppVeyor
1 parent 0ea4b50 commit 2a92157

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ install:
3131
build_script:
3232
- set RUST_TEST_NOCAPTURE=1
3333
- set RUST_BACKTRACE=1
34+
- set MIRI_BACKTRACE=1
3435
- set RUSTFLAGS=-C debug-assertions
3536
# Build and install miri
3637
- cargo build --release --all-features --all-targets
@@ -41,7 +42,7 @@ build_script:
4142

4243
test_script:
4344
# Test miri
44-
- cargo test --release --all-features
45+
- cargo test --release --all-features heap
4546
# Test cargo integration
4647
- cd test-cargo-miri
4748
- '"C:\msys64\mingw64\bin\python3.exe" run-test.py'

tests/run-pass/heap_allocator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fn check_overalign_requests<T: Alloc>(mut allocator: T) {
4040
allocator.alloc(Layout::from_size_align(size, align).unwrap()).unwrap()
4141
}).collect();
4242
for &ptr in &pointers {
43-
assert_eq!((ptr.as_ptr() as usize) % align, 0,
43+
let ptr = ptr.as_ptr() as usize;
44+
assert_eq!(ptr % align, 0,
4445
"Got a pointer less aligned than requested")
4546
}
4647

0 commit comments

Comments
 (0)