Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 131) sorted by relevance

123456

/qemu/tests/unit/
H A Dtest-resv-mem.c47 if (!expected) { in compare_ranges()
96 expected = insert_sorted_range(expected, 0x0, 0xFFFF); in check_range_reverse_array()
102 expected = insert_sorted_range(expected, 0x0, 0xFFFF); in check_range_reverse_array()
110 expected = insert_sorted_range(expected, 0x30000, UINT64_MAX); in check_range_reverse_array()
117 expected = insert_sorted_range(expected, 0x0, 0x4FFFF); in check_range_reverse_array()
130 expected = insert_sorted_range(expected, 0x0, 0xFFFF); in check_range_reverse_array()
131 expected = insert_sorted_range(expected, 0x20000, 0x2FFFF); in check_range_reverse_array()
132 expected = insert_sorted_range(expected, 0x70000, 0x8FFFF); in check_range_reverse_array()
171 expected = insert_sorted_range(expected, 0x1000, 0x1FFF); in check_range_reverse_array_low_end()
172 expected = insert_sorted_range(expected, 0x10000, 0x1FFFF); in check_range_reverse_array_low_end()
[all …]
H A Dtest-qht.c70 static void check(int a, int b, bool expected) in check() argument
89 g_assert_true(!!p == expected); in check()
108 static void check_n(size_t expected) in check_n() argument
113 g_assert_cmpuint(stats.entries, ==, expected); in check_n()
133 static void iter_sum_check(unsigned int expected) in iter_sum_check() argument
138 g_assert_cmpuint(sum, ==, expected); in iter_sum_check()
156 unsigned int expected = 0; in iter_rm_mod_check() local
163 expected += i; in iter_rm_mod_check()
165 iter_sum_check(expected); in iter_rm_mod_check()
H A Dcheck-qom-proplist.c544 const char *expected[], int n) in test_dummy_prop_iterator() argument
551 if (!g_strcmp0(prop->name, expected[i])) { in test_dummy_prop_iterator()
556 expected[i] = NULL; in test_dummy_prop_iterator()
560 g_assert(!expected[i]); in test_dummy_prop_iterator()
566 const char *expected[] = { in test_dummy_iterator() local
583 test_dummy_prop_iterator(&iter, expected, ARRAY_SIZE(expected)); in test_dummy_iterator()
589 const char *expected[] = { "type", "av", "sv" }; in test_dummy_class_iterator() local
594 test_dummy_prop_iterator(&iter, expected, ARRAY_SIZE(expected)); in test_dummy_class_iterator()
/qemu/tests/tcg/s390x/
H A Dsignals-s390x.c55 } expected; variable
63 if (sig != expected.sig) { in handle_signal()
68 if (info->si_addr != expected.addr) { in handle_signal()
78 switch (expected.exception) { in handle_signal()
82 if (page != expected.addr) { in handle_signal()
128 expected.sig = SIGSEGV; in check_sigsegv()
129 expected.addr = page; in check_sigsegv()
130 expected.psw_addr = (unsigned long)func; in check_sigsegv()
131 expected.exception = exception; in check_sigsegv()
158 expected.sig = SIGILL; in main_1()
[all …]
H A Dmvo.c8 uint8_t expected[6] = {0xff, 0x01, 0x23, 0x45, 0x6c, 0xff}; in main() local
18 for (i = 0; i < sizeof(expected); i++) { in main()
19 if (dest[i] != expected[i]) { in main()
H A Dex-branch.c140 #define ASSERT_EQ(expected, actual) do { \ in main() argument
141 if (expected != actual) { \ in main()
142 fprintf(stderr, "%s: " #expected " (0x%lx) != " #actual " (0x%lx)\n", \ in main()
143 test->name, expected, actual); \ in main()
H A Dex-relative-long.c142 #define ASSERT_EQ(expected, actual) do { \ in main() argument
143 if (expected != actual) { \ in main()
144 fprintf(stderr, "%s: " #expected " (0x%lx) != " #actual " (0x%lx)\n", \ in main()
145 test->name, expected, actual); \ in main()
/qemu/util/
H A Dlockcnt.c61 int expected = *val; in qemu_lockcnt_cmpxchg_or_wait() local
65 if (*val == expected) { in qemu_lockcnt_cmpxchg_or_wait()
80 int expected = *val; in qemu_lockcnt_cmpxchg_or_wait() local
118 int expected = val; in qemu_lockcnt_inc() local
161 int expected = val; in qemu_lockcnt_dec_and_lock() local
258 int expected, new, val; in qemu_lockcnt_inc_and_unlock() local
262 expected = val; in qemu_lockcnt_inc_and_unlock()
266 } while (val != expected); in qemu_lockcnt_inc_and_unlock()
276 int expected, new, val; in qemu_lockcnt_unlock() local
280 expected = val; in qemu_lockcnt_unlock()
[all …]
/qemu/scripts/
H A Dxml-preprocess-test.py46 self.assertEqual(result, expected)
53 expected = "<root>TestValue</root>"
56 self.assertEqual(result, expected)
61 expected = f"<root>{platform.architecture()[0]}</root>"
64 self.assertEqual(result, expected)
69 expected = "<root></root>"
72 self.assertEqual(result, expected)
74 expected = "<root>FOO</root>"
77 self.assertEqual(result, expected)
81 expected = "<root></root>"
[all …]
/qemu/tests/plugin/
H A Dinline.c78 g_assert(expected > 0); in stats_insn()
79 g_assert(per_vcpu == expected); in stats_insn()
80 g_assert(inl_per_vcpu == expected); in stats_insn()
81 g_assert(conditional == expected); in stats_insn()
98 g_assert(expected > 0); in stats_tb()
99 g_assert(per_vcpu == expected); in stats_tb()
100 g_assert(inl_per_vcpu == expected); in stats_tb()
101 g_assert(conditional == expected); in stats_tb()
113 g_assert(expected > 0); in stats_mem()
114 g_assert(per_vcpu == expected); in stats_mem()
[all …]
/qemu/tests/qtest/
H A Dhd-geo-test.c726 CHSResult expected[] = { in test_override_ide() local
747 CHSResult expected[] = { in test_override_sata() local
768 CHSResult expected[] = { in test_override_scsi() local
799 CHSResult expected[] = { in test_override_scsi_q35() local
824 CHSResult expected[] = { in test_override_scsi_2_controllers() local
847 CHSResult expected[] = { in test_override_virtio_blk() local
862 CHSResult expected[] = { in test_override_virtio_blk_q35() local
878 CHSResult expected[] = { in test_override_zero_chs() local
889 CHSResult expected[] = { in test_override_zero_chs_q35() local
943 CHSResult expected[] = { in test_override_scsi_hot_unplug() local
[all …]
H A Dvmgenid-test.c119 QemuUUID expected, measured; in vmgenid_set_guid_test() local
122 g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0); in vmgenid_set_guid_test()
128 g_assert(memcmp(measured.data, expected.data, sizeof(measured.data)) == 0); in vmgenid_set_guid_test()
150 QemuUUID expected, measured; in vmgenid_query_monitor_test() local
153 g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0); in vmgenid_query_monitor_test()
159 g_assert(memcmp(measured.data, expected.data, sizeof(measured.data)) == 0); in vmgenid_query_monitor_test()
H A Dacpi-utils.h29 #define ACPI_ASSERT_CMP(actual, expected) do { \ argument
32 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \
35 #define ACPI_ASSERT_CMP64(actual, expected) do { \ argument
38 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \
H A Dmicrobit-test.c269 uint32_t actual, expected; in test_nrf51_gpio() local
273 uint32_t expected; in test_nrf51_gpio() member
285 expected = reset_state[i].expected; in test_nrf51_gpio()
287 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio()
291 expected = 0x00000002; in test_nrf51_gpio()
294 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio()
299 expected = 0x80000001; in test_nrf51_gpio()
302 g_assert_cmpuint(actual, ==, expected); in test_nrf51_gpio()
320 expected = 0x80000001; in test_nrf51_gpio()
321 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIR, expected); in test_nrf51_gpio()
[all …]
/qemu/backends/tpm/
H A Dtrace-events8 tpm_util_get_buffer_size_hdr_len(uint32_t len, size_t expected) "tpm_resp->hdr.len = %u, expected =…
9 tpm_util_get_buffer_size_len(uint32_t len, size_t expected) "tpm_resp->len = %u, expected = %zu"
10 tpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected) "tpm2_resp->hdr.len = %u, expected
11 tpm_util_get_buffer_size_len2(uint32_t len, size_t expected) "tpm2_resp->len = %u, expected = %zu"
/qemu/tests/tcg/mips/user/isa/r5900/
H A Dtest_r5900_mult.c57 static void verify_mult_negations(int32_t rs, int32_t rt, int64_t expected) in verify_mult_negations() argument
59 assert(mult_variants(rs, rt) == expected); in verify_mult_negations()
60 assert(mult_variants(-rs, rt) == -expected); in verify_mult_negations()
61 assert(mult_variants(rs, -rt) == -expected); in verify_mult_negations()
62 assert(mult_variants(-rs, -rt) == expected); in verify_mult_negations()
H A Dtest_r5900_madd.c65 static void verify_madd(int64_t a, int32_t rs, int32_t rt, int64_t expected) in verify_madd() argument
67 assert(madd_variants(a, rs, rt) == expected); in verify_madd()
68 assert(madd_variants(a, -rs, rt) == a + a - expected); in verify_madd()
69 assert(madd_variants(a, rs, -rt) == a + a - expected); in verify_madd()
70 assert(madd_variants(a, -rs, -rt) == expected); in verify_madd()
/qemu/tests/tcg/aarch64/
H A Dpcalign-a64.c8 static void *expected; variable
13 assert(info->si_addr == expected); in sigbus()
35 : "=&r"(tmp), "=m"(expected)); in main()
H A Dtest-826.c8 static void *expected; variable
14 assert(info->si_addr == expected); in sigsegv()
40 expected = page + ofs; in main()
/qemu/tests/tcg/arm/
H A Dpcalign-a32.c12 static void *expected; variable
17 assert(info->si_addr == expected); in sigbus()
39 : "=&r"(tmp), "=m"(expected)); in main()
/qemu/tests/tcg/i386/
H A Dtest-i386-f2xm1.c1116 int check_equal(long double res, long double expected) in check_equal() argument
1118 if (res != expected) { in check_equal()
1122 __builtin_copysignl(1.0L, expected)); in check_equal()
H A Dtest-i386-fyl2xp1.c1130 int check_equal(long double res, long double expected) in check_equal() argument
1132 if (res != expected) { in check_equal()
1136 __builtin_copysignl(1.0L, expected)); in check_equal()
H A Dtest-i386-fpatan.c1045 int check_equal(long double res, long double expected) in check_equal() argument
1047 if (res != expected) { in check_equal()
1051 __builtin_copysignl(1.0L, expected)); in check_equal()
H A Dtest-i386-fyl2x.c1135 int check_equal(long double res, long double expected) in check_equal() argument
1137 if (res != expected) { in check_equal()
1141 __builtin_copysignl(1.0L, expected)); in check_equal()
/qemu/tests/tcg/multiarch/gdbstub/
H A Dcatch-syscalls.py8 def check_state(expected): argument
11 report(actual == expected, "{} == {}".format(actual, expected))

123456