Skip to content

Commit 50dbdbb

Browse files
committed
WIP test on windows
1 parent 610ade3 commit 50dbdbb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.travis.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
language: rust
22
cache: cargo
3+
rust:
4+
- nightly
35

46
os:
5-
- osx
67
- linux
8+
- osx
79

8-
rust:
9-
- nightly
1010
before_script:
11-
# mac os weirdness (https://github.com/travis-ci/travis-ci/issues/6307)
12-
- curl -sSL https://rvm.io/mpapis.asc | gpg --import -
13-
- rvm get stable
1411
# in a cronjob, use latest (not pinned) nightly
1512
- if [ "$TRAVIS_EVENT_TYPE" = cron ]; then rustup override set nightly; fi
16-
# actual travis code
13+
# prepare
1714
- export PATH=$HOME/.local/bin:$PATH
1815
- rustup target add i686-unknown-linux-gnu
1916
- rustup target add i686-pc-windows-gnu
2017
- rustup target add i686-pc-windows-msvc
2118
- rustup component add rust-src
2219
- cargo install xargo || echo "skipping xargo install"
23-
- export RUST_SYSROOT=$HOME/rust
20+
2421
script:
2522
- set -e
2623
- |
@@ -56,6 +53,7 @@ script:
5653
- |
5754
# and run all tests with full mir
5855
cargo test --release --all-features
56+
5957
notifications:
6058
email:
6159
on_success: never

src/fn_call.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -634,14 +634,16 @@ impl<'a, 'mir, 'tcx: 'mir + 'a> EvalContextExt<'tcx> for EvalContext<'a, 'mir, '
634634
let ptr_size = self.memory.pointer_size();
635635
self.write_scalar(dest, Scalar::from_int(1, ptr_size), dest_ty)?;
636636
},
637-
"GetModuleHandleW" |
638-
"GetProcAddress" |
639637
"InitializeCriticalSection" |
640638
"EnterCriticalSection" |
641-
"TryEnterCriticalSection" |
642639
"LeaveCriticalSection" |
643640
"DeleteCriticalSection" |
644641
"SetLastError" => {
642+
// Function does not return anything, nothing to do
643+
},
644+
"GetModuleHandleW" |
645+
"GetProcAddress" |
646+
"TryEnterCriticalSection" => {
645647
// pretend these do not exist/nothing happened, by returning zero
646648
let ptr_size = self.memory.pointer_size();
647649
self.write_scalar(dest, Scalar::from_int(0, ptr_size), dest_ty)?;

0 commit comments

Comments
 (0)