File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tools/testing/selftests/kvm/s390x Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
*
5
5
* Copyright IBM Corp. 2021
6
6
*/
7
+ #define USE_GUEST_ASSERT_PRINTF 1
7
8
8
9
#include <sys/mman.h>
9
10
#include "test_util.h"
@@ -156,7 +157,9 @@ static enum stage perform_next_stage(int *i, bool mapped_0)
156
157
!mapped_0 ;
157
158
if (!skip ) {
158
159
result = test_protection (tests [* i ].addr , tests [* i ].key );
159
- GUEST_ASSERT_2 (result == tests [* i ].expected , * i , result );
160
+ __GUEST_ASSERT (result == tests [* i ].expected ,
161
+ "Wanted %u, got %u, for i = %u" ,
162
+ tests [* i ].expected , result , * i );
160
163
}
161
164
}
162
165
return stage ;
@@ -190,7 +193,7 @@ static void guest_code(void)
190
193
vcpu_run(__vcpu); \
191
194
get_ucall(__vcpu, &uc); \
192
195
if (uc.cmd == UCALL_ABORT) \
193
- REPORT_GUEST_ASSERT_2 (uc, "hints: %lu, %lu"); \
196
+ REPORT_GUEST_ASSERT (uc); \
194
197
TEST_ASSERT_EQ(uc.cmd, UCALL_SYNC); \
195
198
TEST_ASSERT_EQ(uc.args[1], __stage); \
196
199
})
You can’t perform that action at this time.
0 commit comments