Rename to exit_code

This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 15:58:56 +02:00
1 parent 42e75c1737
commit d813652178
4 files changed
+17 -25

No files matched your search

Generated
-7
View File
@@ -392,7 +392,6 @@ dependencies = [
"serde",
"serde_json",
"shell-words",
"static_assertions",
"statistical",
"tempfile",
"thiserror",
@@ -819,12 +818,6 @@ version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "statistical"
version = "1.0.0"
-1
View File
@@ -28,7 +28,6 @@ rand = "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"
+1 -1
View File
@@ -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,
}
+16 -16
View File
@@ -206,27 +206,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
"#);