aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormestorlx <github@martindiz.com.ar>2018-10-15 23:54:48 +0800
committermestorlx <github@martindiz.com.ar>2018-10-16 01:26:15 +0800
commit9f9d6fdcc48bfbc1c039c903d60aa38a166c1850 (patch)
tree42920b862f17f4732135d4ef48557e5bd533facd /test
parent238494752192a2c834eb8913b244671afb48d693 (diff)
downloaddexon-solidity-9f9d6fdcc48bfbc1c039c903d60aa38a166c1850.tar.gz
dexon-solidity-9f9d6fdcc48bfbc1c039c903d60aa38a166c1850.tar.zst
dexon-solidity-9f9d6fdcc48bfbc1c039c903d60aa38a166c1850.zip
fix issue##5007
Diffstat (limited to 'test')
-rwxr-xr-xtest/cmdlineTests.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh
index 20254ef4..a8261693 100755
--- a/test/cmdlineTests.sh
+++ b/test/cmdlineTests.sh
@@ -292,6 +292,14 @@ SOLTMPDIR=$(mktemp -d)
if [[ "$result" != 0 ]] ; then
exit 1
fi
+
+ # This should not fail
+ set +e
+ output=$(echo '' | "$SOLC" --ast - 2>/dev/null)
+ set -e
+ if [[ $? != 0 ]] ; then
+ exit 1
+ fi
)
printTask "Testing soljson via the fuzzer..."