Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #98

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ cli = [
"cargo_metadata",
]
coverage = ["fork", "libc"]

[lints.clippy]
needless_doctest_main = "allow"
3 changes: 3 additions & 0 deletions examples/url/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ publish = false
[dependencies]
url = "2.5.0"
ziggy = { path = "../../", default-features = false }

[features]
fuzzing = []
2 changes: 1 addition & 1 deletion examples/url/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// could assert that a certain value satisfies a property.
fn invariant_fuzz(data: &str) {
if let Ok(parsed) = url::Url::parse(data) {
#[cfg(not(fuzzing))]
#[cfg(not(feature = "fuzzing"))]
println!("{data} => {parsed}");
// We assert that the string representation of the URL always contains a ':'
// character.
Expand Down
2 changes: 1 addition & 1 deletion src/bin/cargo-ziggy/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ impl fmt::Display for FuzzingConfig {

pub fn kill_subprocesses_recursively(pid: &str) -> Result<(), Error> {
let subprocesses = process::Command::new("pgrep")
.arg(&format!("-P{pid}"))
.arg(format!("-P{pid}"))
.output()?;

for subprocess in std::str::from_utf8(&subprocesses.stdout)?.split('\n') {
Expand Down
2 changes: 1 addition & 1 deletion tests/arbitrary_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{

fn kill_subprocesses_recursively(pid: &str) {
let subprocesses = process::Command::new("pgrep")
.arg(&format!("-P{pid}"))
.arg(format!("-P{pid}"))
.output()
.unwrap();

Expand Down
2 changes: 1 addition & 1 deletion tests/url_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{

fn kill_subprocesses_recursively(pid: &str) {
let subprocesses = process::Command::new("pgrep")
.arg(&format!("-P{pid}"))
.arg(format!("-P{pid}"))
.output()
.unwrap();

Expand Down
Loading