[kvm-unit-tests,v1] s390x: call setup_vm() in selftest
diff mbox

Message ID 20180219173854.9244-1-david@redhat.com
State New
Headers show

Commit Message

David Hildenbrand Feb. 19, 2018, 5:38 p.m. UTC
This fixes the two failing tests.

Signed-off-by: David Hildenbrand <david@redhat.com>
---

While Paolo moved the call to setup_vm(), he seems to have forgotten
about the selftest which tests the VM.

 s390x/selftest.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Paolo Bonzini Feb. 20, 2018, 9:58 a.m. UTC | #1
On 19/02/2018 18:38, David Hildenbrand wrote:
> This fixes the two failing tests.
> 
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
> 
> While Paolo moved the call to setup_vm(), he seems to have forgotten
> about the selftest which tests the VM.

Indeed...  Applied, thanks.

Paolo

>  s390x/selftest.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/s390x/selftest.c b/s390x/selftest.c
> index 18a40e1..f4acdc4 100644
> --- a/s390x/selftest.c
> +++ b/s390x/selftest.c
> @@ -75,6 +75,8 @@ int main(int argc, char**argv)
>  	report("argv[1] == test", !strcmp(argv[1], "test"));
>  	report("argv[2] == 123", !strcmp(argv[2], "123"));
>  
> +	setup_vm();
> +
>  	test_fp();
>  	test_pgm_int();
>  	test_malloc();
>

Patch
diff mbox

diff --git a/s390x/selftest.c b/s390x/selftest.c
index 18a40e1..f4acdc4 100644
--- a/s390x/selftest.c
+++ b/s390x/selftest.c
@@ -75,6 +75,8 @@  int main(int argc, char**argv)
 	report("argv[1] == test", !strcmp(argv[1], "test"));
 	report("argv[2] == 123", !strcmp(argv[2], "123"));
 
+	setup_vm();
+
 	test_fp();
 	test_pgm_int();
 	test_malloc();