Weird `cargo test` error on travis windows job

Since Rust 1.40 release I got this error on the Windows job on Travis:

The command "cargo test --all" exited with 127.
    Finished test [unoptimized + debuginfo] target(s) in 25.78s
     Running target\debug\deps\ggwp_zgui-3b74f8e4b6c31eb3.exe
     Running target\debug\deps\ggwp_zscene-ec8c5c465c239831.exe
     Running target\debug\deps\zcomponents-1118c32f12d9d9de.exe
     Running target\debug\deps\zemeroth-87343641e1757a7b.exe
error: test failed, to rerun pass '-p zemeroth --bin zemeroth'
Caused by:
  process didn't exit successfully: `C:\Users\travis\build\ozkriff\zemeroth\target\debug\deps\zemeroth-87343641e1757a7b.exe` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)
C:/Users/travis/.cargo/bin/cargo.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

Has anyone seen a similar error?

cargo test seems to work fine on appveyor.

Any tips?

Oh, this seems relevant

Just for anyone else who might stumble on this. Fixing this problem is pretty easy. Just add the bin folder of your toolchain to PATH. In appveyor I did it like this in my install section:

- set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\%RUST_VERSION%-%TARGET%\bin

UPD: Nope, export PATH=$PATH:$(rustc --print sysroot)/bin doesn't help. :frowning:

UPD2: I guess, I'll use if [ $TRAVIS_OS_NAME != "windows" ]; then cargo test --all; fi as a tmp workaround for now.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.