Home
last modified time | relevance | path

Searched refs:TEST_ASSERT (Results 1 – 25 of 41) sorted by relevance

12

/external/skqp/tests/
DGrPorterDuffTest.cpp47 #define TEST_ASSERT(...) REPORTER_ASSERT(reporter, __VA_ARGS__) macro
86 TEST_ASSERT(!analysis.requiresDstTexture() || in XPInfo()
95 TEST_ASSERT(analysis.requiresDstTexture() == analysis.requiresNonOverlappingDraws()); in XPInfo()
98 TEST_ASSERT(!xp->willReadDstColor() || in XPInfo()
101 TEST_ASSERT(xp->hasSecondaryOutput() == GrBlendCoeffRefsSrc2(fBlendInfo.fDstBlend)); in XPInfo()
125 TEST_ASSERT(xpi.fIgnoresInputColor); in test_lcd_coverage()
126 TEST_ASSERT(!xpi.fCompatibleWithCoverageAsAlpha); in test_lcd_coverage()
127 TEST_ASSERT(kInvalid_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
128 TEST_ASSERT(kInvalid_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
129 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
[all …]
/external/skia/tests/
DGrPorterDuffTest.cpp47 #define TEST_ASSERT(...) REPORTER_ASSERT(reporter, __VA_ARGS__) macro
88 TEST_ASSERT(!analysis.requiresDstTexture() || in XPInfo()
97 TEST_ASSERT(analysis.requiresDstTexture() == analysis.requiresNonOverlappingDraws()); in XPInfo()
100 TEST_ASSERT(!xp->willReadDstColor() || in XPInfo()
103 TEST_ASSERT(xp->hasSecondaryOutput() == GrBlendCoeffRefsSrc2(fBlendInfo.fDstBlend)); in XPInfo()
127 TEST_ASSERT(xpi.fIgnoresInputColor); in test_lcd_coverage()
128 TEST_ASSERT(!xpi.fCompatibleWithCoverageAsAlpha); in test_lcd_coverage()
129 TEST_ASSERT(kInvalid_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
130 TEST_ASSERT(kInvalid_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage()
131 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); in test_lcd_coverage()
[all …]
/external/icu/icu4c/source/test/intltest/
Dv32test.cpp66 #define TEST_ASSERT(expr) \ macro
101 TEST_ASSERT(b->size() == 3); in UVector32_API()
102 TEST_ASSERT(b->elementAti(1) == 20); in UVector32_API()
116 TEST_ASSERT(*b != *a); in UVector32_API()
117 TEST_ASSERT(!(*b == *a)); in UVector32_API()
118 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
120 TEST_ASSERT(*b == *a); in UVector32_API()
121 TEST_ASSERT(!(*b != *a)); in UVector32_API()
122 TEST_ASSERT(b->equals(*a)); in UVector32_API()
124 TEST_ASSERT(*b != *a); in UVector32_API()
[all …]
Duvectest.cpp66 #define TEST_ASSERT(expr) \ macro
115 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API()
116 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API()
117 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API()
118 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API()
119 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API()
120 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API()
121 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API()
122 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API()
123 TEST_ASSERT(!a->contains((int32_t)5)); in UVector_API()
[all …]
Dutxttest.cpp32 #define TEST_ASSERT(x) \ macro
299 TEST_ASSERT(utext_isWritable(ut) == TRUE); in TestCMR()
437 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in TestCopyMove()
454 TEST_ASSERT(uti == usi); in TestCopyMove()
455 TEST_ASSERT(utc == usc); in TestCopyMove()
467 TEST_ASSERT(uti == expectedNativeLength); in TestCopyMove()
513 TEST_ASSERT(actualDelta == expectedDelta); in TestReplace()
531 TEST_ASSERT(uti == usi); in TestReplace()
532 TEST_ASSERT(utc == usc); in TestReplace()
541 TEST_ASSERT(uti == expectedNativeLength); in TestReplace()
[all …]
Drbbiapts.cpp40 #define TEST_ASSERT(expr) {if ((expr) == FALSE) { \ macro
276 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
288 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText()
291 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText()
294 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText()
309 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText()
310 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText()
333 TEST_ASSERT(pos==0); in TestGetSetAdoptText()
335 TEST_ASSERT(pos==5); in TestGetSetAdoptText()
337 TEST_ASSERT(pos==6); in TestGetSetAdoptText()
[all …]
Dalphaindextst.cpp77 #define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);… macro
94 TEST_ASSERT(28 == lc); // 26 letters plus two under/overflow labels. in APITest()
104 TEST_ASSERT(coll != NULL); in APITest()
107 TEST_ASSERT(coll == &index->getCollator()); in APITest()
137 TEST_ASSERT(&aip == index); in APITest()
141 TEST_ASSERT(35 < lc); // Japanese should add a bunch. Don't rely on the exact value. in APITest()
152 TEST_ASSERT(*germanCol == indexCol); in APITest()
157 TEST_ASSERT(ELLIPSIS == s); in APITest()
159 TEST_ASSERT(ELLIPSIS == s); in APITest()
161 TEST_ASSERT(ELLIPSIS == s); in APITest()
[all …]
Ditspoof.cpp35 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
125 TEST_ASSERT(UnicodeString("lllOO") == dest); in testSpoofAPI()
126 TEST_ASSERT(&dest == &retStr); in testSpoofAPI()
247 TEST_ASSERT(0 == position); in testInvisible()
346 TEST_ASSERT(fileSize>0); in testConfData()
393 TEST_ASSERT(actual == expected); in testConfData()
416 TEST_ASSERT(s1 == s2); in testScriptSet()
419 TEST_ASSERT(!(s1 == s2)); in testScriptSet()
420 TEST_ASSERT(s1.test(USCRIPT_ARABIC, status)); in testScriptSet()
421 TEST_ASSERT(s1.test(USCRIPT_GREEK, status) == FALSE); in testScriptSet()
[all …]
Dusettest.cpp36 #define TEST_ASSERT(expr) {if (!(expr)) { \ macro
703 TEST_ASSERT((void *)uset == (void *)uniset); in TestAPI()
705 TEST_ASSERT((void *)setx == (void *)uset); in TestAPI()
708 TEST_ASSERT((void *)constUSet == (void *)constSet); in TestAPI()
710 TEST_ASSERT((void *)constSetx == (void *)constUSet); in TestAPI()
765 TEST_ASSERT(nextv == TRUE); in TestIteration()
766 TEST_ASSERT(isString == FALSE); in TestIteration()
767 TEST_ASSERT(codePoint==0x61); in TestIteration()
768 TEST_ASSERT(s == "a"); in TestIteration()
771 TEST_ASSERT(nextv == TRUE); in TestIteration()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dreapits.c39 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
232 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); in TestRegexCAPI()
238 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); in TestRegexCAPI()
245 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); in TestRegexCAPI()
251 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); in TestRegexCAPI()
266 TEST_ASSERT(u_strcmp(pat, p) == 0); in TestRegexCAPI()
267 TEST_ASSERT(len==(int32_t)strlen("abc*")); in TestRegexCAPI()
292 TEST_ASSERT(clone1 != NULL); in TestRegexCAPI()
297 TEST_ASSERT(clone2 != NULL); in TestRegexCAPI()
303 TEST_ASSERT(clone3 != NULL); in TestRegexCAPI()
[all …]
Dutexttst.c37 #define TEST_ASSERT(x) \ macro
77 TEST_ASSERT(c == 0x41); in TestAPI()
79 TEST_ASSERT(utb == NULL); in TestAPI()
83 TEST_ASSERT(uta == &utLoc); in TestAPI()
86 TEST_ASSERT(uta == &utLoc); in TestAPI()
101 TEST_ASSERT(utb != NULL); in TestAPI()
102 TEST_ASSERT(utb != uta); in TestAPI()
104 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
120 TEST_ASSERT(uta!=NULL); in TestAPI()
123 TEST_ASSERT(b==TRUE); in TestAPI()
[all …]
Dtracetst.c52 #define TEST_ASSERT(expr) \ macro
229 TEST_ASSERT(originalTEntryFunc != testTraceEntry); in TestTraceAPI()
230 TEST_ASSERT(originalTExitFunc != testTraceExit); in TestTraceAPI()
231 TEST_ASSERT(originalTDataFunc != testTraceData); in TestTraceAPI()
235 TEST_ASSERT(e == testTraceEntry); in TestTraceAPI()
236 TEST_ASSERT(x == testTraceExit); in TestTraceAPI()
237 TEST_ASSERT(d == testTraceData); in TestTraceAPI()
238 TEST_ASSERT(context == newContext); in TestTraceAPI()
250 TEST_ASSERT(level==UTRACE_OFF); in TestTraceAPI()
253 TEST_ASSERT(level==UTRACE_VERBOSE); in TestTraceAPI()
[all …]
Dcbiapts.c41 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ macro
353 TEST_ASSERT(j == 2); in TestBreakIteratorCAPI()
358 TEST_ASSERT(j == 5); in TestBreakIteratorCAPI()
689 TEST_ASSERT(bi != NULL); in TestBreakIteratorStatusVec()
694 TEST_ASSERT(pos == 1); in TestBreakIteratorStatusVec()
699 TEST_ASSERT(numVals == 2); in TestBreakIteratorStatusVec()
700 TEST_ASSERT(vals[0] == 100); in TestBreakIteratorStatusVec()
701 TEST_ASSERT(vals[1] == 300); in TestBreakIteratorStatusVec()
702 TEST_ASSERT(vals[2] == -1); in TestBreakIteratorStatusVec()
705 TEST_ASSERT(status == U_BUFFER_OVERFLOW_ERROR); in TestBreakIteratorStatusVec()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c26 TEST_ASSERT(size != 0 && !(size & (size - 1)), in align()
57 TEST_ASSERT(ret != -1, "KVM_CHECK_EXTENSION IOCTL failed,\n" in kvm_check_cap()
82 TEST_ASSERT(ret == 0, "KVM_ENABLE_CAP IOCTL failed,\n" in vm_enable_cap()
95 TEST_ASSERT(vm->fd >= 0, "KVM_CREATE_VM ioctl failed, " in vm_open()
131 TEST_ASSERT(vm != NULL, "Insufficient Memory"); in vm_create()
166 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", mode); in vm_create()
213 TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed,\n" in kvm_vm_restart()
230 TEST_ASSERT(ret == 0, "%s: KVM_GET_DIRTY_LOG failed: %s", in kvm_vm_get_dirty_log()
346 TEST_ASSERT(ret == 0, "munmap of VCPU fd failed, rc: %i " in vm_vcpu_rm()
349 TEST_ASSERT(ret == 0, "Close of VCPU fd failed, rc: %i " in vm_vcpu_rm()
[all …]
Delf.c24 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in elfhdr_get()
37 TEST_ASSERT((ident[EI_MAG0] == ELFMAG0) && (ident[EI_MAG1] == ELFMAG1) in elfhdr_get()
46 TEST_ASSERT(ident[EI_CLASS] == ELFCLASS64, in elfhdr_get()
53 TEST_ASSERT(((BYTE_ORDER == LITTLE_ENDIAN) in elfhdr_get()
68 TEST_ASSERT(ident[EI_VERSION] == EV_CURRENT, in elfhdr_get()
82 TEST_ASSERT(offset_rv == 0, "Seek to ELF header failed,\n" in elfhdr_get()
85 TEST_ASSERT(hdrp->e_phentsize == sizeof(Elf64_Phdr), in elfhdr_get()
90 TEST_ASSERT(hdrp->e_shentsize == sizeof(Elf64_Shdr), in elfhdr_get()
124 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in kvm_vm_elf_load()
143 TEST_ASSERT(offset_rv == offset, in kvm_vm_elf_load()
[all …]
Dio.c52 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_write()
59 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write()
65 TEST_ASSERT(false, "Unexpected EOF,\n" in test_write()
71 TEST_ASSERT(rc >= 0, "Unexpected ret from write,\n" in test_write()
129 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_read()
136 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read()
142 TEST_ASSERT(false, "Unexpected EOF,\n" in test_read()
148 TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" in test_read()
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dsync_regs_test.c37 TEST_ASSERT(left->reg == right->reg, \ in compare_regs()
104 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
111 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
119 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
126 TEST_ASSERT(rv < 0 && errno == EINVAL, in main()
135 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
157 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
161 TEST_ASSERT(run->s.regs.regs.r11 == 0xBAD1DEA + 1, in main()
164 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
184 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
[all …]
Devmcs_test.c115 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
124 TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], in main()
132 TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); in main()
136 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main()
153 TEST_ASSERT(!memcmp(&regs1, &regs2, sizeof(regs2)), in main()
Dplatform_info_test.c55 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in test_msr_platform_info_enabled()
60 TEST_ASSERT(uc.cmd == UCALL_SYNC, in test_msr_platform_info_enabled()
63 TEST_ASSERT((uc.args[1] & MSR_PLATFORM_INFO_MAX_TURBO_RATIO) == in test_msr_platform_info_enabled()
75 TEST_ASSERT(run->exit_reason == KVM_EXIT_SHUTDOWN, in test_msr_platform_info_disabled()
Dstate_test.c154 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main()
163 TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], in main()
171 TEST_ASSERT(false, "Unknown ucall 0x%x.", uc.cmd); in main()
175 TEST_ASSERT(!strcmp((const char *)uc.args[0], "hello") && in main()
192 TEST_ASSERT(!memcmp(&regs1, &regs2, sizeof(regs2)), in main()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c234 TEST_ASSERT(vm->mode == VM_MODE_P52V48_4K, "Attempt to use " in virt_pgd_alloc()
267 TEST_ASSERT(vm->mode == VM_MODE_P52V48_4K, "Attempt to use " in virt_pg_map()
270 TEST_ASSERT((vaddr % vm->page_size) == 0, in virt_pg_map()
274 TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, in virt_pg_map()
278 TEST_ASSERT((paddr % vm->page_size) == 0, in virt_pg_map()
282 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in virt_pg_map()
554 TEST_ASSERT(vm->mode == VM_MODE_P52V48_4K, "Attempt to use " in addr_gva2gpa()
583 TEST_ASSERT(false, "No mapping for vm virtual address, " in addr_gva2gpa()
640 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); in vcpu_setup()
733 TEST_ASSERT(ret == 0, "KVM_GET_SUPPORTED_CPUID failed %d %d\n", in kvm_get_supported_cpuid()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c131 TEST_ASSERT(false, in vcpu_worker()
156 TEST_ASSERT(test_bit(page, bmap), in vm_dirty_log_verify()
169 TEST_ASSERT(*value_ptr == iteration || in vm_dirty_log_verify()
195 TEST_ASSERT(*value_ptr <= iteration, in vm_dirty_log_verify()
253 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", mode); in run_test()
416 TEST_ASSERT(mode < NUM_VM_MODES, in main()
427 TEST_ASSERT(iterations > 2, "Iterations must be greater than two"); in main()
428 TEST_ASSERT(interval > 0, "Interval must be greater than zero"); in main()
429 TEST_ASSERT(!top_offset || guest_test_mem == DEFAULT_GUEST_TEST_MEM, in main()
440 TEST_ASSERT(vm_guest_modes[i].supported, in main()
/external/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/
Dcopy_assign.pass.cpp43 TEST_ASSERT(it != endIt); in TEST_SUITE()
46 TEST_ASSERT(it != endIt); in TEST_SUITE()
48 TEST_ASSERT(it.depth() == 1); in TEST_SUITE()
66 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator()
69 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator()
71 TEST_ASSERT(it.depth() == 2); in createDifferentInterestingIterator()
Dmove_assign.pass.cpp49 TEST_ASSERT(it != endIt); in TEST_SUITE()
52 TEST_ASSERT(it != endIt); in TEST_SUITE()
54 TEST_ASSERT(it.depth() == 1); in TEST_SUITE()
71 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator()
74 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator()
76 TEST_ASSERT(it.depth() == 2); in createDifferentInterestingIterator()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c35 TEST_ASSERT(vm->pgtable_levels == 4, in pud_index()
46 TEST_ASSERT(vm->pgtable_levels >= 3, in pmd_index()
94 TEST_ASSERT((vaddr % vm->page_size) == 0, in _virt_pg_map()
97 TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, in _virt_pg_map()
100 TEST_ASSERT((paddr % vm->page_size) == 0, in _virt_pg_map()
103 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in _virt_pg_map()
133 TEST_ASSERT(false, "Page table levels must be 2, 3, or 4"); in _virt_pg_map()
176 TEST_ASSERT(false, "Page table levels must be 2, 3, or 4"); in addr_gva2gpa()
182 TEST_ASSERT(false, "No mapping for vm virtual address, " in addr_gva2gpa()
287 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); in vcpu_setup()

12