#!/bin/sh
#
# verify that CVE-2019-14541 is fixed
#

cd debian/tests

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

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

exit $res
