Skip to content

Commit 4a5b540

Browse files
authored
Merge pull request #31 from tautschnig/some-log
Avoid exit(1) without log data for CBMC and JBMC
2 parents 4d78737 + 7e97314 commit 4a5b540

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
@@ -43,5 +43,8 @@ esac ; \
4343
\
4444
done \
4545
'
46+
if [ ! -s $LOG.ok ] ; then
47+
mv $LOG.latest $LOG.ok ; echo "EC=42" >> $LOG.ok
48+
fi
4649
eval `tail -n 1 $LOG.ok`
4750
}

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)