From 1263d2c0e8b1c2bdbeff934c8cd008d97f1953ce Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 18 Mar 2014 23:07:01 -0400 Subject: [PATCH] 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. --- testcases/t/175-startup-notification.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"|; -- 2.39.5