Skip to content

Commit 20753d9

Browse files
committed
Windows debugging
1 parent 78261b7 commit 20753d9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ build_script:
4141

4242
test_script:
4343
# Test miri
44-
- cargo test --release --all-features
44+
- cargo test --release --all-features heap
45+
- false
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ 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();
44+
eprintln!("{:?}, {}", ptr, (ptr as usize) % 256);
45+
assert_eq!((ptr as usize) % align, 0,
4446
"Got a pointer less aligned than requested")
4547
}
4648

0 commit comments

Comments
 (0)