[apparmor] [patch 7/8] testsuite - fix quoting in coredump tests
John Johansen
john.johansen at canonical.com
Thu Jan 12 10:54:40 UTC 2012
On 01/12/2012 10:08 AM, Steve Beattie wrote:
> The coredump checkcorefile() function did not properly quote the _known
> variable (set when the tests are marked as expected failures) when
> the expectation was that the testcase would produce a corefile. This
> would result in a failed testcase reporting XFAIL incorrectly.
>
Acked-by: John Johansen <john.johansen at canonical.com>
> ---
> tests/regression/apparmor/coredump.sh | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: b/tests/regression/apparmor/coredump.sh
> ===================================================================
> --- a/tests/regression/apparmor/coredump.sh
> +++ b/tests/regression/apparmor/coredump.sh
> @@ -35,11 +35,11 @@ checkcorefile()
> fi
>
> if [ "$requirement" = "yes" -a "$_corefile" = "no" ] ; then
> - if [ -n $_known ] ; then
> + if [ -n "$_known" ] ; then
> echo -n "XFAIL: "
> fi
> echo "Error: corefile expected but not present - $2"
> - if [ -z $_known ] ; then
> + if [ -z "$_known" ] ; then
> cat $profile
> testfailed
> fi
>
>
> -- AppArmor mailing list AppArmor at lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
>
More information about the AppArmor
mailing list