summaryrefslogtreecommitdiff
path: root/tests/all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/all.sh')
-rwxr-xr-xtests/all.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/all.sh b/tests/all.sh
index bd39caf8dcbd5..07fd346f04c53 100755
--- a/tests/all.sh
+++ b/tests/all.sh
@@ -1,8 +1,8 @@
#! /bin/sh
#
-# Copyright (c) 2018-2020 Gavin D. Howard and contributors.
+# SPDX-License-Identifier: BSD-2-Clause
#
-# All rights reserved.
+# Copyright (c) 2018-2020 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -138,6 +138,10 @@ printf '%s\n' "$halt" | "$exe" "$@" > /dev/null 2>&1
if [ "$d" = bc ]; then
printf '%s\n' "quit" | "$exe" "$@" > /dev/null 2>&1
+ two=$("$exe" "$@" -e 1+1 -e quit)
+ if [ "$two" != "2" ]; then
+ err_exit "$d failed a quit test" 1
+ fi
fi
printf 'pass\n'