qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] kvm-unit-tests: arm: Fail on unknown subtest


From: Andrew Jones
Subject: Re: [Qemu-devel] [PATCH] kvm-unit-tests: arm: Fail on unknown subtest
Date: Tue, 29 Sep 2015 17:47:52 +0200
User-agent: Mutt/1.5.23.1 (2014-03-12)

On Tue, Sep 29, 2015 at 11:08:27AM -0400, Christopher Covington wrote:
> Signed-off-by: Christopher Covington <address@hidden>
> ---
>  arm/selftest.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arm/selftest.c b/arm/selftest.c
> index fc9ec60..aa16a91 100644
> --- a/arm/selftest.c
> +++ b/arm/selftest.c
> @@ -376,6 +376,8 @@ int main(int argc, char **argv)
>               cpumask_set_cpu(0, &smp_reported);
>               while (!cpumask_full(&smp_reported))
>                       cpu_relax();
> +     } else {
> +             report("Unknown subtest", false);

I think

 printf("Unknown subtest\n");
 abort();

might be better. Also, please post kvm-unit-tests patches to the
kvm mailing list.

Thanks,
drew

>       }
>  
>       return report_summary();
> -- 
> Qualcomm Innovation Center, Inc.
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]