Home
last modified time | relevance | path

Searched refs:EXPECT_EQ (Results 1 – 25 of 35) sorted by relevance

12

/trusty/kernel/app/btitest/
Dbtitest.c75 EXPECT_EQ(true, arch_bti_supported()); in TEST()
81 EXPECT_EQ(0, btitest_bl()); in TEST()
86 EXPECT_EQ(bti_trap_code(), btitest_br(BTITEST_CALLEE_NOP)); in TEST()
87 EXPECT_EQ(bti_trap_code(), btitest_blr(BTITEST_CALLEE_NOP)); in TEST()
88 EXPECT_EQ(bti_trap_code(), btitest_br_x16(BTITEST_CALLEE_NOP)); in TEST()
89 EXPECT_EQ(bti_trap_code(), btitest_br_x17(BTITEST_CALLEE_NOP)); in TEST()
94 EXPECT_EQ(bti_trap_code(), btitest_br(BTITEST_CALLEE_BTI)); in TEST()
95 EXPECT_EQ(bti_trap_code(), btitest_blr(BTITEST_CALLEE_BTI)); in TEST()
96 EXPECT_EQ(bti_trap_code(), btitest_br_x16(BTITEST_CALLEE_BTI)); in TEST()
97 EXPECT_EQ(bti_trap_code(), btitest_br_x17(BTITEST_CALLEE_BTI)); in TEST()
[all …]
/trusty/user/base/lib/tipc/test/main/
Dmain.c122 EXPECT_EQ(ERR_BAD_HANDLE, rc, "wait on invalid handle"); in TEST()
135 EXPECT_EQ(ERR_BAD_HANDLE, rc, "wait on invalid handle"); in TEST()
138 EXPECT_EQ(ERR_BAD_HANDLE, rc, "wait on invalid handle"); in TEST()
141 EXPECT_EQ(ERR_BAD_HANDLE, rc, "wait on invalid handle"); in TEST()
146 EXPECT_EQ(ERR_NOT_FOUND, rc, "wait on invalid handle"); in TEST()
158 EXPECT_EQ(ERR_BAD_HANDLE, rc, "closing invalid handle"); in TEST()
171 EXPECT_EQ(ERR_BAD_HANDLE, rc, "closing invalid handle"); in TEST()
174 EXPECT_EQ(ERR_BAD_HANDLE, rc, "closing invalid handle"); in TEST()
177 EXPECT_EQ(ERR_BAD_HANDLE, rc, "closing invalid handle"); in TEST()
182 EXPECT_EQ(ERR_NOT_FOUND, rc, "closing invalid handle"); in TEST()
[all …]
/trusty/user/app/sample/spi/swspi-test/
Dswspi-test.c126 EXPECT_EQ(rc, 0); in exec_xfer()
129 EXPECT_EQ(rc, 0); in exec_xfer()
132 EXPECT_EQ(rc, 0); in exec_xfer()
135 EXPECT_EQ(rc, 0); in exec_xfer()
148 EXPECT_EQ(rc, 0); in exec_xfer()
181 EXPECT_EQ(rc, 0); in TEST_P()
184 EXPECT_EQ(rc, 0); in TEST_P()
191 EXPECT_EQ(rc, 0); in TEST_P()
196 EXPECT_EQ(rc, 0); in TEST_P()
201 EXPECT_EQ(rc, 0); in TEST_P()
[all …]
/trusty/user/base/app/cfi-test/
Dcfi-test.c120 EXPECT_EQ(crasher_command(_state->chan, CRASHER_NOP), 0); in TEST_F()
121 EXPECT_EQ(crasher_wait(_state->chan), CRASHER_NOP); in TEST_F()
125 EXPECT_EQ(crasher_command(_state->chan, CRASHER_CORRECT), 0); in TEST_F()
126 EXPECT_EQ(crasher_wait(_state->chan), CRASHER_CORRECT); in TEST_F()
134 EXPECT_EQ(crasher_command(_state->chan, CRASHER_ENTRY), 0); in TEST_F()
135 EXPECT_EQ(crasher_wait(_state->chan), CRASHER_ENTRY); in TEST_F()
139 EXPECT_EQ(crasher_command(_state->chan, CRASHER_EXCLUDE_WRONG_TYPE), 0); in TEST_F()
140 EXPECT_EQ(crasher_wait(_state->chan), CRASHER_EXCLUDE_WRONG_TYPE); in TEST_F()
148 EXPECT_EQ(crasher_command(_state->chan, CRASHER_EXCLUDE_NOT_ENTRY), 0); in TEST_F()
149 EXPECT_EQ(crasher_wait(_state->chan), CRASHER_VOID); in TEST_F()
[all …]
/trusty/kernel/app/usercopytest/
Dusercopytest.c173 EXPECT_EQ((dest_kbuf1 == NULL), (arch_mmu_flags_start == FLAGS_NO_PAGE)); in TEST_P()
174 EXPECT_EQ((dest_kbuf2 == NULL), (arch_mmu_flags_end == FLAGS_NO_PAGE)); in TEST_P()
181 EXPECT_EQ(0, ret); in TEST_P()
185 EXPECT_EQ(0, checkbuf(dest_kbuf1, DEST_DATA, TEST_BUF1_SIZE)); in TEST_P()
188 EXPECT_EQ(0, checkbuf(dest_kbuf2, DEST_DATA, TEST_BUF2_SIZE)); in TEST_P()
205 EXPECT_EQ(0, ret); in TEST_P()
217 EXPECT_EQ(ERR_FAULT, ret); in TEST_P()
228 EXPECT_EQ(0, checkbuf(src_buf, SRC_DATA, TEST_BUF_SIZE)); in TEST_P()
232 EXPECT_EQ(DEST_DATA, dest_kbuf1[0]); in TEST_P()
235 EXPECT_EQ(0, checkbuf(dest_kbuf1 + TEST_BUF_COPY_START, expect1, in TEST_P()
[all …]
/trusty/kernel/app/uirqtest/
Duevt_test.c127 EXPECT_EQ(ERR_ALREADY_EXISTS, rc); in TEST_F()
146 EXPECT_EQ(ERR_TIMED_OUT, rc, "wait on created event"); in TEST_F()
149 EXPECT_EQ(0, rc, "signal event"); in TEST_F()
153 EXPECT_EQ(0, rc, "wait on signaled event"); in TEST_F()
157 EXPECT_EQ(ERR_TIMED_OUT, rc, "wait on created event"); in TEST_F()
160 EXPECT_EQ(0, rc, "signal event"); in TEST_F()
163 EXPECT_EQ(0, rc, "wait on created event"); in TEST_F()
237 EXPECT_EQ(ERR_TIMED_OUT, rc, "wait on client"); in TEST_F()
241 EXPECT_EQ(0, rc, "notify event signaled"); in TEST_F()
245 EXPECT_EQ(0, rc, "wait on client"); in TEST_F()
[all …]
/trusty/user/app/sample/hwcrypto-unittest/
Dmain.c121 EXPECT_EQ(ERR_BAD_HANDLE, rc, "generic - bad handle"); in TEST_F()
138 EXPECT_EQ(ERR_NOT_FOUND, rc, "generic - closed handle"); in TEST_F()
161 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - initial derivation"); in TEST_F()
168 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - second derivation"); in TEST_F()
172 EXPECT_EQ(0, rc, "derive repeatable - equal"); in TEST_F()
181 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
185 EXPECT_EQ(0, rc, "derive repeatable - equal"); in TEST_F()
191 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
195 EXPECT_EQ(true, keys_are_sufficiently_distinct(dest, size, dest2, size), in TEST_F()
206 EXPECT_EQ(NO_ERROR, rc, "derive repeatable - versioned API"); in TEST_F()
[all …]
/trusty/user/base/lib/scudo/test/
Dscudo_test.c124 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_NOP), NO_ERROR); in TEST_F()
128 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_ONE_MALLOC), NO_ERROR); in TEST_F()
132 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_ONE_CALLOC), NO_ERROR); in TEST_F()
136 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_ONE_REALLOC), NO_ERROR); in TEST_F()
140 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_MANY_MALLOC), NO_ERROR); in TEST_F()
144 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_ONE_NEW), NO_ERROR); in TEST_F()
148 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_ONE_NEW_ARR), NO_ERROR); in TEST_F()
152 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_MALLOC_AND_NEW), NO_ERROR); in TEST_F()
156 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_DOUBLE_FREE), in TEST_F()
161 EXPECT_EQ(scudo_srv_rpc(_state->chan, SCUDO_REALLOC_AFTER_FREE), in TEST_F()
[all …]
/trusty/user/base/lib/libc-trusty/test/
Dlibc_test.c95 EXPECT_EQ(test_data, 0); in TEST_F()
202 EXPECT_EQ(70, result->tm_year); in TEST_F()
203 EXPECT_EQ(0, result->tm_mon); in TEST_F()
204 EXPECT_EQ(1, result->tm_mday); in TEST_F()
205 EXPECT_EQ(0, result->tm_hour); in TEST_F()
206 EXPECT_EQ(0, result->tm_min); in TEST_F()
207 EXPECT_EQ(0, result->tm_sec); in TEST_F()
213 EXPECT_EQ(70, result->tm_year); in TEST_F()
214 EXPECT_EQ(0, result->tm_mon); in TEST_F()
215 EXPECT_EQ(2, result->tm_mday); in TEST_F()
[all …]
/trusty/user/app/avb/test/
Dunittest.cpp30 EXPECT_EQ(AvbError::kNone, response.get_error(), "Read failed"); in TEST()
31 EXPECT_EQ(1, response.get_value(), "Did not read expected value"); in TEST()
41 EXPECT_EQ(AvbError::kNone, response.get_error(), "Write failed"); in TEST()
42 EXPECT_EQ(2, response.get_value(), "Did not write expected value"); in TEST()
52 EXPECT_EQ(AvbError::kInvalid, response.get_error(), in TEST()
54 EXPECT_EQ(1, response.get_value(), in TEST()
65 EXPECT_EQ(AvbError::kInvalid, response.get_error(), in TEST()
76 EXPECT_EQ(AvbError::kInvalid, response.get_error(), in TEST()
87 EXPECT_EQ(AvbError::kNone, response.get_error(), in TEST()
/trusty/user/base/app/device_tree/tests/
Dmain.c82 EXPECT_EQ(rc, NO_ERROR); in TEST_F()
83 EXPECT_EQ(strcmp(prop_name, "compatible"), 0); in TEST_F()
84 EXPECT_EQ(len, strlen("compatible")); in TEST_F()
90 EXPECT_EQ(rc, NO_ERROR); in TEST_F()
91 EXPECT_EQ(strcmp(prop_value, TEST_NODE_COMPAT), 0); in TEST_F()
93 EXPECT_EQ(len, strlen(TEST_NODE_COMPAT) + 1); in TEST_F()
121 EXPECT_EQ(rc, NO_ERROR); in TEST_F()
122 EXPECT_EQ(memcmp(prop_value, &expected_value, 8), 0); in TEST_F()
123 EXPECT_EQ(len, 8); in TEST_F()
128 EXPECT_EQ(rc, NO_ERROR); in TEST_F()
[all …]
/trusty/kernel/app/pactest/
Dpactest.c152 EXPECT_EQ(apa, 0); in TEST()
153 EXPECT_EQ(api, 0); in TEST()
157 EXPECT_EQ(api, 0); in TEST()
166 EXPECT_EQ(pacfrac, 0); in TEST()
185 EXPECT_EQ(rc, ERR_FAULT); in TEST()
193 EXPECT_EQ(sctlr_el1 & SCTLR_EL1_ENIA, in TEST()
195 EXPECT_EQ(sctlr_el1 & SCTLR_EL1_ENIB, 0); in TEST()
196 EXPECT_EQ(sctlr_el1 & SCTLR_EL1_ENDA, 0); in TEST()
197 EXPECT_EQ(sctlr_el1 & SCTLR_EL1_ENDB, 0); in TEST()
209 EXPECT_EQ(thread_keys->apia[0], keyi_lo); in TEST()
[all …]
/trusty/kernel/app/mmutest/
Dmmutest.c85 EXPECT_EQ(i, PAGE_SIZE, "memory below stack corrupted\n"); in mmutest_run_in_thread()
101 EXPECT_EQ(NO_ERROR, ret, "vmm_alloc_contiguous failed\n"); in mmutest_alloc()
108 EXPECT_EQ(arch_mmu_flags_query, arch_mmu_flags, in mmutest_alloc()
184 EXPECT_EQ(0, memcmp(ptr, execute_ptr, alloc_len), in mmu_test_execute()
201 EXPECT_EQ(NO_ERROR, tmp_ret, "vmm_free_region failed\n"); in mmu_test_execute()
206 EXPECT_EQ(NO_ERROR, tmp_ret, "vmm_free_region failed\n"); in mmu_test_execute()
264 EXPECT_EQ(NO_ERROR, ret); in TEST_P()
267 EXPECT_EQ(NO_ERROR, ret, "vmm_free_region failed\n"); in TEST_P()
278 EXPECT_EQ(NO_ERROR, ret); in TEST_P()
281 EXPECT_EQ(NO_ERROR, ret, "vmm_free_region failed\n"); in TEST_P()
[all …]
/trusty/user/base/lib/libstdc++-trusty/test/
Dlibcxx_test.cpp287 EXPECT_EQ(3, global_count); in TEST_F()
288 EXPECT_EQ(3U, a.size()); in TEST_F()
289 EXPECT_EQ(0U, b.size()); in TEST_F()
294 EXPECT_EQ(3U, b.size()); in TEST_F()
299 EXPECT_EQ(0, global_count); in TEST_F()
311 EXPECT_EQ(1, v[0]); in TEST_F()
312 EXPECT_EQ(2, v[1]); in TEST_F()
313 EXPECT_EQ(3, v[2]); in TEST_F()
333 EXPECT_EQ(true, (std::is_base_of_v<Parent, Parent>)); in TEST_F()
334 EXPECT_EQ(true, (std::is_base_of_v<Child, Child>)); in TEST_F()
[all …]
/trusty/user/base/app/apploader/tests/
Dapploader_test.c220 EXPECT_EQ(false, HasFailure()); in TEST_F()
221 EXPECT_EQ(error, APPLOADER_ERR_UNKNOWN_CMD); in TEST_F()
228 EXPECT_EQ(false, HasFailure()); in TEST_F()
229 EXPECT_EQ(error, APPLOADER_ERR_INVALID_CMD); in TEST_F()
239 EXPECT_EQ(false, HasFailure()); in TEST_F()
240 EXPECT_EQ(error, APPLOADER_ERR_INVALID_CMD); in TEST_F()
250 EXPECT_EQ(false, HasFailure()); in TEST_F()
251 EXPECT_EQ(error, APPLOADER_ERR_INVALID_CMD); in TEST_F()
268 EXPECT_EQ(false, HasFailure()); in TEST_F()
269 EXPECT_EQ(error, APPLOADER_ERR_VERIFICATION_FAILED); in TEST_F()
[all …]
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c354 EXPECT_EQ(expect_error, resp_hdr.result); in make_bad_request()
492 EXPECT_EQ(ERR_BAD_HANDLE, rc, "generic - bad handle"); in TEST_F()
565 EXPECT_EQ(ERR_BAD_HANDLE, rc, "expect bad handle error"); in TEST_F()
578 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect bad length error"); in TEST_F()
585 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
592 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
599 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
606 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
613 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
620 EXPECT_EQ(ERR_INVALID_ARGS, rc, "expect invalid_args error"); in TEST_F()
[all …]
/trusty/user/base/lib/uirq/test/
Dmain.c59 EXPECT_EQ(ERR_NOT_FOUND, _state->hevt1, "open no-access uirq event"); in TEST_F()
83 EXPECT_EQ(MAX_UIRQ_CNT, evt_cnt, "evt1 count"); in TEST_F()
139 EXPECT_EQ(MAX_UIRQ_CNT * 2, ttl_cnt, "total count"); in TEST_F()
140 EXPECT_EQ(MAX_UIRQ_CNT, evt1_cnt, "evt1 count"); in TEST_F()
141 EXPECT_EQ(MAX_UIRQ_CNT, evt2_cnt, "evt2 count"); in TEST_F()
158 EXPECT_EQ(ERR_NOT_SUPPORTED, rc); in TEST()
163 EXPECT_EQ(ERR_NOT_SUPPORTED, rc); in TEST()
167 EXPECT_EQ(ERR_NOT_SUPPORTED, rc); in TEST()
/trusty/kernel/app/dpctest/
Ddpctest.c89 EXPECT_EQ(NO_ERROR, rc); in TEST()
90 EXPECT_EQ(0, test_ctx.count); in TEST()
91 EXPECT_EQ(TEST_REQUEUE_CNT / 2, test_ctx.in_atomic_requeue_cnt); in TEST()
92 EXPECT_EQ(TEST_REQUEUE_CNT / 2, test_ctx.in_thread_requeue_cnt); in TEST()
/trusty/kernel/app/smptest/
Dsmptest.c191 EXPECT_EQ(unblock_count, j, "cpu %d FAILED block count\n", cpu); in TEST()
192 EXPECT_EQ(error_count, 0, "cpu %d FAILED error count\n", cpu); in TEST()
193 EXPECT_EQ(done_count, j, "cpu %d FAILED done count\n", cpu); in TEST()
201 EXPECT_EQ(mp_is_cpu_active(cpu), false, in TEST()
203 EXPECT_EQ(unblock_count, 0, "cpu %d FAILED block count\n", cpu); in TEST()
204 EXPECT_EQ(error_count, 0, "cpu %d FAILED error count\n", cpu); in TEST()
205 EXPECT_EQ(done_count, 0, "cpu %d FAILED done count\n", cpu); in TEST()
/trusty/user/app/sample/memref-test/
Dmemref-test.c167 EXPECT_EQ(bss_page[0], 3); in TEST()
169 EXPECT_EQ(0, munmap((void*)out, PAGE_SIZE)); in TEST()
193 EXPECT_EQ(bss_page[0], 42); in TEST()
194 EXPECT_EQ(mbuf[0], 42); in TEST()
259 EXPECT_EQ(0, lender_read_bss(chan, 0, sizeof(remote_buf), remote_buf)); in test_recv_ref()
260 EXPECT_EQ(1, remote_buf[0]); in test_recv_ref()
263 EXPECT_EQ(0, lender_write_bss(chan, 1, sizeof(remote_buf), remote_buf)); in test_recv_ref()
264 EXPECT_EQ(out[0], 1); in test_recv_ref()
265 EXPECT_EQ(out[1], 42); in test_recv_ref()
270 EXPECT_EQ(0, munmap((void*)out, PAGE_SIZE)); in test_recv_ref()
/trusty/user/app/sample/hwrng-unittest/
Dmain.c55 EXPECT_EQ(NO_ERROR, rc, "hwrng test"); in TEST()
69 EXPECT_EQ(NO_ERROR, rc, "hwrng test"); in TEST()
160 EXPECT_EQ( in TEST()
179 EXPECT_EQ(NO_ERROR, rc, "hwrng test"); in TEST()
191 EXPECT_EQ(exp_cnt, cnt, "hwrng ttl sample cnt"); in TEST()
192 EXPECT_EQ(1000, ave, "hwrng eve sample cnt"); in TEST()
/trusty/user/base/app/apploader/tests/cbor_test/
Dcbor_test.cpp71 EXPECT_EQ(cppbor::headerSize(val), cbor::encodedSizeOf(val)); in TEST()
101 EXPECT_EQ(expected, cbor::encodedSizeOfInt(val)); in TEST()
133 EXPECT_EQ(res, nullptr); in TEST()
147 EXPECT_EQ(resMap->size(), 0lu); in TEST()
213 EXPECT_EQ(canonical.state(), cbor::VectorCborEncoder::State::kEncoding); in TEST()
227 EXPECT_EQ(innerCanonical.state(), in TEST()
238 EXPECT_EQ(nonCanonical.state(), cbor::VectorCborEncoder::State::kInvalid); in TEST()
254 EXPECT_EQ(innerNonCanonical.state(), in TEST()
266 EXPECT_EQ(enc.state(), cbor::VectorCborEncoder::State::kInvalid); in TEST()
341 EXPECT_EQ(initialView.size(), 0u); in TEST()
[all …]
/trusty/user/app/sample/binder-test/client/
Dmain.cpp78 EXPECT_EQ(true, status.isOk()); in CheckRepeat()
79 EXPECT_EQ(in, out); in CheckRepeat()
85 EXPECT_EQ(true, status.isOk()); in CheckRepeat()
90 EXPECT_EQ(in == out, true); in CheckRepeat()
103 EXPECT_EQ(status.isOk(), true); in CheckReverse()
104 EXPECT_EQ(repeated == input, true); in CheckReverse()
108 EXPECT_EQ(reversed == reversed_input, true); in CheckReverse()
/trusty/user/app/cast-auth/app/test-app/
Dmain.cc40 #define EXPECT_TRUE(val, args...) EXPECT_EQ(true, (bool)(val), ##args)
41 #define EXPECT_FALSE(val, args...) EXPECT_EQ(false, (bool)(val), ##args)
287 EXPECT_EQ(signature[i], test_signature[i], "signature diff"); in TEST_F()
306 EXPECT_EQ(signature[i], test_signature[i], "signature diff"); in TEST_F()
/trusty/kernel/app/userscstest/
Duserscstest.c77 EXPECT_EQ(flags, ARCH_MMU_FLAG_PERM_NO_EXECUTE | ARCH_MMU_FLAG_PERM_USER, in translate_uspace_ptr()
169 EXPECT_EQ(0, *(vaddr_t*)elem_translated, in trusty_app_callback()
215 EXPECT_EQ(0, res, in TEST()

12