Rename to exit_code
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Peter · committed by David Peter · parent 42e75c1 · Browse files · 4 files·+17 added−25 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+17 added−25 removed
- other:+17 added−25 removed
Provenance
- Commit
d813652- Tree
e353f84- Author
David Peter <sharkdp@users.noreply.github.com>- Committer
David Peter <mail@david-peter.de>- Parent
42e75c1
4 files changed+17 added−25 removed
modified:src/benchmark/measurement.rs+1 added-1 removed
30 unmodified lines31 /// Maximum memory usage of the process32 pub peak_memory_usage: Byte,33 34 // The exit status of the process35- #[serde(serialize_with = "serialize_exit_status")]35+ #[serde(rename = "exit_code", serialize_with = "serialize_exit_status")]36 pub exit_status: ExitStatus,37 }38 39 #[derive(Debug, Default, Clone, Serialize, PartialEq)]103 unmodified linesmodified:src/benchmark/scheduler.rs+16 added-16 removed
204 unmodified lines205 fn scheduler_basic() -> Result<()> {206 insta::assert_yaml_snapshot!(generate_results(&["--runs=2", "sleep 0.123", "sleep 0.456"])?, @r#"207 - command: sleep 0.123208 measurements:209- - wall_clock_time: 0.123210- user_time: 0211- system_time: 0212- memory_usage_byte: 0209+ - time_wall_clock: 0.123210+ time_user: 0211+ time_system: 0212+ peak_memory_usage: 0213 exit_code: 0214- - wall_clock_time: 0.123215- user_time: 0216- system_time: 0217- memory_usage_byte: 0214+ - time_wall_clock: 0.123215+ time_user: 0216+ time_system: 0217+ peak_memory_usage: 0218 exit_code: 0219 - command: sleep 0.456220 measurements:221- - wall_clock_time: 0.456222- user_time: 0223- system_time: 0224- memory_usage_byte: 0221+ - time_wall_clock: 0.456222+ time_user: 0223+ time_system: 0224+ peak_memory_usage: 0225 exit_code: 0226- - wall_clock_time: 0.456227- user_time: 0228- system_time: 0229- memory_usage_byte: 0226+ - time_wall_clock: 0.456227+ time_user: 0228+ time_system: 0229+ peak_memory_usage: 0230 exit_code: 0231 "#);232 233 Ok(())1 unmodified linemodified:Cargo.lock-7 removed
390 unmodified lines391 "rust_decimal",392 "serde",393 "serde_json",394 "shell-words",395- "static_assertions",395 "statistical",396 "tempfile",397 "thiserror",398 "uom",419 unmodified lines818 source = "registry+https://github.com/rust-lang/crates.io-index"819 checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"820 821 [[package]]823-name = "static_assertions"824-version = "1.1.0"825-source = "registry+https://github.com/rust-lang/crates.io-index"826-checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"827-828-[[package]]822 name = "statistical"823 version = "1.0.0"824 source = "registry+https://github.com/rust-lang/crates.io-index"825 checksum = "2a8f8038e7e7969abb3f1b7c2a811225e9296da208539e0f79c5251d6cac0025"358 unmodified linesmodified:Cargo.toml-1 removed
26 unmodified lines27282930313132333448 unmodified lines26 unmodified linesrand = "0.10"shell-words = "1.1"thiserror = "2.0"anyhow = "1.0"static_assertions = "1.1.0"
[target.'cfg(not(windows))'.dependencies]libc = "0.2"
48 unmodified lines