File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tools/testing/selftests/kvm Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
*
7
7
* Basic guest setup / host vCPU thread code lifted from set_memory_region_test.
8
8
*/
9
+ #define USE_GUEST_ASSERT_PRINTF 1
10
+
9
11
#include <pthread.h>
10
12
#include <sched.h>
11
13
#include <semaphore.h>
@@ -157,7 +159,7 @@ static void *vcpu_worker(void *__data)
157
159
goto done ;
158
160
break ;
159
161
case UCALL_ABORT :
160
- REPORT_GUEST_ASSERT_1 (uc , "val = %lu" );
162
+ REPORT_GUEST_ASSERT (uc );
161
163
break ;
162
164
case UCALL_DONE :
163
165
goto done ;
@@ -560,7 +562,7 @@ static void guest_code_test_memslot_rw(void)
560
562
ptr < MEM_TEST_GPA + MEM_TEST_SIZE ; ptr += page_size ) {
561
563
uint64_t val = * (uint64_t * )ptr ;
562
564
563
- GUEST_ASSERT_1 (val == MEM_TEST_VAL_2 , val );
565
+ GUEST_ASSERT_EQ (val , MEM_TEST_VAL_2 );
564
566
* (uint64_t * )ptr = 0 ;
565
567
}
566
568
You can’t perform that action at this time.
0 commit comments