From: Michael Stapelberg Date: Thu, 10 Jul 2014 20:30:45 +0000 (+0200) Subject: tests: include error message when unable to create a FIFO X-Git-Tag: 4.9~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=704ccb1d25293a36623f49899b89433afbe35526;p=i3%2Fi3 tests: include error message when unable to create a FIFO I have seen this message once or twice, but since the actual error message was not included, I cannot definitely say what’s going on. I think it might be a race condition where the file with the specified tmpname() already exists, but let’s be sure before we attempt to fix it. --- diff --git a/testcases/t/175-startup-notification.t b/testcases/t/175-startup-notification.t index a85320ea..9f0c046a 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 BAIL_OUT "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|;