lkml.org 
[lkml]   [2022]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [V1 PATCH 1/5] selftests: kvm: move common startup logic to kvm_util.c
On Sat, Sep 03, 2022 at 01:28:45AM +0000, Vishal Annapurve wrote:
[...]
> --- a/tools/testing/selftests/kvm/demand_paging_test.c
> +++ b/tools/testing/selftests/kvm/demand_paging_test.c
> @@ -393,7 +393,7 @@ static void help(char *name)
> exit(0);
> }
>
> -int main(int argc, char *argv[])
> +void __main(int argc, char *argv[])
> {
> int max_vcpus = kvm_check_cap(KVM_CAP_MAX_VCPUS);
> struct test_params p = {
> @@ -447,18 +447,15 @@ int main(int argc, char *argv[])
> }
>
> for_each_guest_mode(run_test, &p);
> -
> - return 0;
> }
>
> #else /* __NR_userfaultfd */
>
> #warning "missing __NR_userfaultfd definition"
>
> -int main(void)
> +void __main(int argc, char *argv[])
> {
> print_skip("__NR_userfaultfd must be present for userfaultfd test");
> - return KSFT_SKIP;

exit(KSFT_SKIP) to preserve the test behavior.

\
 
 \ /
  Last update: 2022-09-08 23:10    [W:0.129 / U:1.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site