File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tools/testing/selftests/kvm/x86_64 Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
*
5
5
* Copyright (C) 2020, Red Hat, Inc.
6
6
*/
7
+ #define USE_GUEST_ASSERT_PRINTF 1
8
+
7
9
#define _GNU_SOURCE /* for program_invocation_name */
8
10
#include <fcntl.h>
9
11
#include <stdio.h>
@@ -20,7 +22,7 @@ static void guest_bsp_vcpu(void *arg)
20
22
{
21
23
GUEST_SYNC (1 );
22
24
23
- GUEST_ASSERT (get_bsp_flag () != 0 );
25
+ GUEST_ASSERT_NE (get_bsp_flag (), 0 );
24
26
25
27
GUEST_DONE ();
26
28
}
@@ -29,7 +31,7 @@ static void guest_not_bsp_vcpu(void *arg)
29
31
{
30
32
GUEST_SYNC (1 );
31
33
32
- GUEST_ASSERT (get_bsp_flag () == 0 );
34
+ GUEST_ASSERT_EQ (get_bsp_flag (), 0 );
33
35
34
36
GUEST_DONE ();
35
37
}
@@ -65,7 +67,7 @@ static void run_vcpu(struct kvm_vcpu *vcpu)
65
67
stage );
66
68
break ;
67
69
case UCALL_ABORT :
68
- REPORT_GUEST_ASSERT_2 (uc , "values: %#lx, %#lx" );
70
+ REPORT_GUEST_ASSERT (uc );
69
71
default :
70
72
TEST_ASSERT (false, "Unexpected exit: %s" ,
71
73
exit_reason_str (vcpu -> run -> exit_reason ));
You can’t perform that action at this time.
0 commit comments