From: Tony Crisci Date: Wed, 19 Mar 2014 03:07:01 +0000 (-0400) Subject: Test 175: use BAIL_OUT instead of `die` X-Git-Tag: 4.8~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1263d2c0e8b1c2bdbeff934c8cd008d97f1953ce;p=i3%2Fi3 Test 175: use BAIL_OUT instead of `die` BAIL_OUT produces a friendlier message explaining why the tests cannot continue on the command line. `die` produces a cryptic message that some test failed for some reason. --- diff --git a/testcases/t/175-startup-notification.t b/testcases/t/175-startup-notification.t index ee285ff7..a85320ea 100644 --- a/testcases/t/175-startup-notification.t +++ b/testcases/t/175-startup-notification.t @@ -84,7 +84,7 @@ is_num_children($first_ws, 0, 'no containers on this workspace yet'); # echo its $DESKTOP_STARTUP_ID. We (blockingly) read the variable into # $startup_id in the testcase. my $tmp = tmpnam(); -mkfifo($tmp, 0600) or die "Could not create FIFO in $tmp"; +mkfifo($tmp, 0600) or BAIL_OUT "Could not create FIFO in $tmp"; cmd qq|exec echo \$DESKTOP_STARTUP_ID >$tmp|; @@ -182,7 +182,7 @@ is_num_children($third_ws, 2, 'two containers on the third workspace'); # environment variable. ###################################################################### -mkfifo($tmp, 0600) or die "Could not create FIFO in $tmp"; +mkfifo($tmp, 0600) or BAIL_OUT "Could not create FIFO in $tmp"; cmd qq|exec --no-startup-id echo \$DESKTOP_STARTUP_ID >$tmp|; @@ -198,7 +198,7 @@ is($startup_id, '', 'startup_id empty'); # 4) same thing, but with double quotes in exec ###################################################################### -mkfifo($tmp, 0600) or die "Could not create FIFO in $tmp"; +mkfifo($tmp, 0600) or BAIL_OUT "Could not create FIFO in $tmp"; cmd qq|exec --no-startup-id "echo \$DESKTOP_STARTUP_ID >$tmp"|;