Skip to content

Commit 7e97314

Browse files
committed
Avoid exit(1) without log data for CBMC and JBMC
Instead provide the fragment of the log produced up until the timeout happened.
1 parent e9545d5 commit 7e97314

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cbmc.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ esac ; \
3838
\
3939
done \
4040
'
41+
if [ ! -s $LOG.ok ] ; then
42+
mv $LOG.latest $LOG.ok ; echo "EC=42" >> $LOG.ok
43+
fi
4144
eval `tail -n 1 $LOG.ok`
4245
}

jbmc.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ esac ; \
3838
\
3939
done \
4040
'
41+
if [ ! -s $LOG.ok ] ; then
42+
mv $LOG.latest $LOG.ok ; echo "EC=42" >> $LOG.ok
43+
fi
4144
eval `tail -n 1 $LOG.ok`
4245
}

0 commit comments

Comments
 (0)