#!/bin/sh
#
# verify that CVE-2019-14486 is repaired
#

cd debian/tests

echo "info: compiling"
(cobc test02.cob > $AUTOPKGTEST_TMP/test02.act 2>&1)

echo "info: running"
cmp -s test02.exp $AUTOPKGTEST_TMP/test02.act
res=$?
if [ $res = 0 ] ; then
    echo "success: test02 produced proper results"
else
    echo "error: test02 did not produce proper results"
    diff -u test02.exp $AUTOPKGTEST_TMP/test02.act
fi

exit $res
