Skip to content

Commit

Permalink
Fix path to dlls on windows (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilslv authored Feb 1, 2022
1 parent 029510b commit 9575fd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion skeptic/src/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ impl Fingerprint {
rlib.pop();
rlib.pop();
rlib.pop();
let mut dll = rlib.clone();
rlib.push(format!("deps/lib{}-{}", libname, hash));
rlib = guess_ext(rlib, &["rlib", "so", "dylib", "dll"])?;
dll.push(format!("deps/{}-{}", libname, hash));
rlib = guess_ext(rlib, &["rlib", "so", "dylib"]).or_else(|_| guess_ext(dll, &["dll"]))?;

Ok(Fingerprint {
libname,
Expand Down
5 changes: 5 additions & 0 deletions testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ path = "../skeptic"
# It is not needed for normal uses of Skeptic.
[dependencies.skeptic]
path = "../skeptic"

[dependencies.derive_more]
version = "0.99"
default_features = false
features = ["from"]
3 changes: 2 additions & 1 deletion testing/tests/hashtag-test.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Rust code that includes a "`#`" should be tested by skeptic without error.

```rust
#[derive(derive_more::From)]
struct Person<'a>(&'a str);
fn main() {
let _ = Person("#bors");
let _ = Person::from("#bors");
}
```

Expand Down

0 comments on commit 9575fd6

Please sign in to comment.