diff options
author | chriseth <chris@ethereum.org> | 2018-10-16 20:25:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 20:25:58 +0800 |
commit | b723893ac76aefb07f7792fb9f16cff72f3e84b0 (patch) | |
tree | f4f1ae9003c103ec28b01784f514c0b9ba9297c8 /test | |
parent | 036929aba11268eafb602394af8b212fbe56ae6c (diff) | |
parent | 9f9d6fdcc48bfbc1c039c903d60aa38a166c1850 (diff) | |
download | dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar.gz dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar.bz2 dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar.lz dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar.xz dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.tar.zst dexon-solidity-b723893ac76aefb07f7792fb9f16cff72f3e84b0.zip |
Merge pull request #5225 from mestorlx/issue5007
Prevent crash in case there are no contracts
Diffstat (limited to 'test')
-rwxr-xr-x | test/cmdlineTests.sh | 8 |
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..." |