diff options
author | Charles Baylis <charles.baylis@linaro.org> | 2015-12-04 15:28:25 +0000 |
---|---|---|
committer | Charles Baylis <charles.baylis@linaro.org> | 2015-12-04 15:37:32 +0000 |
commit | 770cd2a469b0421334427001e956336143439e50 (patch) | |
tree | 40c5ac7b6c7d07de399f6267088d23c5cdddb747 | |
parent | 8cfc51a5a65110129a323aec57f2032b1e3bb466 (diff) |
Check that expect works before running make check
There is an ongoing problem which means that expect is unable to spawn
processes. Detect the condition before running make check, and try to output
a little bit of debug info.
Change-Id: I3ab113e0c98eb31a82720f1f55af225a8a59ec49
-rwxr-xr-x | lib/make.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/make.sh b/lib/make.sh index 923fe5c0..69f9efe5 100755 --- a/lib/make.sh +++ b/lib/make.sh @@ -709,6 +709,15 @@ make_check() local tool="`get_toolname $1`" local builddir="`get_builddir $1 ${2:+$2}`" + # check that expect is working, and dump some debug info if not + if ! echo "spawn true" | /usr/bin/expect -f - >/dev/null; then + error "expect cannot span processes. Aborting make check." + ls -l /dev/ptmx + ls -l /dev/pts + grep devpts /proc/mounts + return 1 + fi + # Some tests cause problems, so don't run them all unless # --enable alltests is specified at runtime. local ignore="dejagnu gmp mpc mpfr make eglibc linux" |