Skip to content

Commit

Permalink
tests: drop dedupe from static_libs test
Browse files Browse the repository at this point in the history
Now that the upstream Cargo nightly bug has been resolved, we don't
expect to need to do consecutive deduplication on the native-static-libs
output ourselves.
  • Loading branch information
cpu committed Oct 6, 2023
1 parent f4761c0 commit f7df89e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
16 changes: 0 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ name = "rustls_ffi"
crate-type = ["lib", "staticlib"]

[dev-dependencies]
itertools = "0.11.0"
regex = "1.9.6"
5 changes: 1 addition & 4 deletions tests/static_libs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use itertools::Itertools;
use regex::Regex;
use std::process::Command;

Expand All @@ -24,9 +23,7 @@ fn verify_static_libs() {
.as_str();

// We should find the expected native-static-libs output for the platform in question.
// Note that we remove duplicate consecutive entries, but not duplicate entries in general
// as these can be intended and have meaning on specific platforms.
let actual_linker_parts: Vec<_> = native_libs.split_whitespace().dedup().collect();
let actual_linker_parts: Vec<_> = native_libs.split_whitespace().collect();
assert_eq!(
actual_linker_parts,
expected_linker_parts(),
Expand Down

0 comments on commit f7df89e

Please sign in to comment.