Skip to content

Commit

Permalink
Rename to exit_code
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Jan 1, 2025
1 parent 3108e31 commit 2b8ad4a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 25 deletions.
7 changes: 0 additions & 7 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 @@ -28,7 +28,6 @@ rand = "0.8"
shell-words = "1.0"
thiserror = "2.0"
anyhow = "1.0"
static_assertions = "1.1.0"

[target.'cfg(not(windows))'.dependencies]
libc = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/benchmark/measurement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct Measurement {
pub peak_memory_usage: Byte,

// The exit status of the process
#[serde(serialize_with = "serialize_exit_status")]
#[serde(rename = "exit_code", serialize_with = "serialize_exit_status")]
pub exit_status: ExitStatus,
}

Expand Down
32 changes: 16 additions & 16 deletions src/benchmark/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,27 +190,27 @@ fn scheduler_basic() -> Result<()> {
insta::assert_yaml_snapshot!(generate_results(&["--runs=2", "sleep 0.123", "sleep 0.456"])?, @r#"
- command: sleep 0.123
measurements:
- wall_clock_time: 0.123
user_time: 0
system_time: 0
memory_usage_byte: 0
- time_wall_clock: 0.123
time_user: 0
time_system: 0
peak_memory_usage: 0
exit_code: 0
- wall_clock_time: 0.123
user_time: 0
system_time: 0
memory_usage_byte: 0
- time_wall_clock: 0.123
time_user: 0
time_system: 0
peak_memory_usage: 0
exit_code: 0
- command: sleep 0.456
measurements:
- wall_clock_time: 0.456
user_time: 0
system_time: 0
memory_usage_byte: 0
- time_wall_clock: 0.456
time_user: 0
time_system: 0
peak_memory_usage: 0
exit_code: 0
- wall_clock_time: 0.456
user_time: 0
system_time: 0
memory_usage_byte: 0
- time_wall_clock: 0.456
time_user: 0
time_system: 0
peak_memory_usage: 0
exit_code: 0
"#);

Expand Down

0 comments on commit 2b8ad4a

Please sign in to comment.