Skip to content

Commit 874ef80

Browse files
committed
Check whether there is unexpected output to stderr in fast specs on CI
1 parent d1e32df commit 874ef80

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/truffle/integration/no_extra_output.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,19 @@ echo "Test loading many standard libraries"
3939

4040
$RUBY_BIN -w --experimental-options --lazy-default=false test/truffle/integration/no_extra_output/all_stdlibs.rb 1>temp.txt 2>&1
4141
check $?
42+
43+
echo "Test of the unexpected output to stderr."
44+
echo "To ensure there are no unexpected warnings for instance."
45+
46+
jt --silent test specs fast --error-output error_output.txt 2>stderr.txt
47+
echo Error output:
48+
cat error_output.txt
49+
50+
if [ -s stderr.txt ]; then
51+
echo Extra output:
52+
cat stderr.txt
53+
exit 1
54+
else
55+
echo No extra output
56+
rm -f stderr.txt
57+
fi

0 commit comments

Comments
 (0)