Skip to content

Commit

Permalink
Skip hostname spec if hostname command fails (#12987)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blacksmoke16 authored Jan 24, 2023
1 parent 41f6188 commit 498abb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/std/system_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ describe System do
describe "hostname" do
pending_win32 "returns current hostname" do
shell_hostname = `hostname`.strip
$?.success?.should be_true # The hostname command has to be available
pending! "`hostname` command was unsuccessful" unless $?.success?

hostname = System.hostname
hostname.should eq(shell_hostname)
end
Expand Down

0 comments on commit 498abb4

Please sign in to comment.