From 121a075bc2558003990377843393ca27d784f50f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 2 Dec 2020 20:47:06 +0300 Subject: Fix buildscript assertion failure on redirecting command stderr to stdout --- tests/recipe/buildscript/testscript | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tests') diff --git a/tests/recipe/buildscript/testscript b/tests/recipe/buildscript/testscript index d1adc36..2603f62 100644 --- a/tests/recipe/buildscript/testscript +++ b/tests/recipe/buildscript/testscript @@ -83,6 +83,29 @@ $* clean 2>- } + : mutual-redirects + : + { + echo 'bar' >=bar; + + cat <=buildfile; + foo: bar + % [diag=cp] + {{ + echo 'copying' 2>&1 + cp $path($<) $path($>) + }} + EOI + + $* 2>>~%EOE% != 0; + cp file{foo} + buildfile:4:3: error: stdout and stderr redirected to each other + %.+ + EOE + + $* clean 2>- + } + : untracked-var : { -- cgit v1.1