diff --git a/spec/std/process/status_spec.cr b/spec/std/process/status_spec.cr index 52ebea8fe783..6cbabbea5d73 100644 --- a/spec/std/process/status_spec.cr +++ b/spec/std/process/status_spec.cr @@ -43,13 +43,13 @@ describe Process::Status do end it "#system_exit_status" do - Process::Status.new(exit_status(0)).exit_status.should eq 0_u32 - Process::Status.new(exit_status(1)).exit_status.should eq({{ flag?(:unix) ? 0x0100_u32 : 1_u32 }}) - Process::Status.new(exit_status(127)).exit_status.should eq({{ flag?(:unix) ? 0x7f00_u32 : 127_u32 }}) - Process::Status.new(exit_status(128)).exit_status.should eq({{ flag?(:unix) ? 0x8000_u32 : 128_u32 }}) - Process::Status.new(exit_status(255)).exit_status.should eq({{ flag?(:unix) ? 0xFF00_u32 : 255_u32 }}) + Process::Status.new(exit_status(0)).system_exit_status.should eq 0_u32 + Process::Status.new(exit_status(1)).system_exit_status.should eq({{ flag?(:unix) ? 0x0100_u32 : 1_u32 }}) + Process::Status.new(exit_status(127)).system_exit_status.should eq({{ flag?(:unix) ? 0x7f00_u32 : 127_u32 }}) + Process::Status.new(exit_status(128)).system_exit_status.should eq({{ flag?(:unix) ? 0x8000_u32 : 128_u32 }}) + Process::Status.new(exit_status(255)).system_exit_status.should eq({{ flag?(:unix) ? 0xFF00_u32 : 255_u32 }}) - status_for(:interrupted).exit_status.should eq({% if flag?(:unix) %}Signal::INT.value{% else %}LibC::STATUS_CONTROL_C_EXIT{% end %}) + status_for(:interrupted).system_exit_status.should eq({% if flag?(:unix) %}Signal::INT.value{% else %}LibC::STATUS_CONTROL_C_EXIT{% end %}) end it "#success?" do