From 704ccb1d25293a36623f49899b89433afbe35526 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 10 Jul 2014 22:30:45 +0200 Subject: [PATCH] tests: include error message when unable to create a FIFO MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- testcases/t/175-startup-notification.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|; -- 2.39.5