/external/skia/tests/ |
D | GrPorterDuffTest.cpp | 52 #define TEST_ASSERT(...) REPORTER_ASSERT(reporter, __VA_ARGS__) macro 94 TEST_ASSERT(!analysis.requiresDstTexture() || in XPInfo() 103 TEST_ASSERT(analysis.requiresDstTexture() == analysis.requiresNonOverlappingDraws()); in XPInfo() 106 TEST_ASSERT(!xp->willReadDstColor() || in XPInfo() 109 TEST_ASSERT(xp->hasSecondaryOutput() == GrBlendCoeffRefsSrc2(fBlendInfo.fDstBlend)); in XPInfo() 134 TEST_ASSERT(xpi.fIgnoresInputColor); in test_lcd_coverage() 135 TEST_ASSERT(!xpi.fCompatibleWithCoverageAsAlpha); in test_lcd_coverage() 136 TEST_ASSERT(!xpi.fUnaffectedByDstValue); in test_lcd_coverage() 137 TEST_ASSERT(kInvalid_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage() 138 TEST_ASSERT(kInvalid_OutputType == xpi.fSecondaryOutputType); in test_lcd_coverage() [all …]
|
/external/skqp/tests/ |
D | GrPorterDuffTest.cpp | 47 #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/icu/icu4c/source/test/intltest/ |
D | v32test.cpp | 67 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN {\ macro 103 TEST_ASSERT(b->size() == 3); in UVector32_API() 104 TEST_ASSERT(b->elementAti(1) == 20); in UVector32_API() 118 TEST_ASSERT(*b != *a); in UVector32_API() 119 TEST_ASSERT(!(*b == *a)); in UVector32_API() 120 TEST_ASSERT(!b->equals(*a)); in UVector32_API() 122 TEST_ASSERT(*b == *a); in UVector32_API() 123 TEST_ASSERT(!(*b != *a)); in UVector32_API() 124 TEST_ASSERT(b->equals(*a)); in UVector32_API() 126 TEST_ASSERT(*b != *a); in UVector32_API() [all …]
|
D | uvectest.cpp | 67 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN {\ macro 117 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API() 118 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API() 119 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API() 120 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API() 121 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API() 122 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API() 123 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API() 124 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API() 125 TEST_ASSERT(!a->contains((int32_t)5)); in UVector_API() [all …]
|
D | utxttest.cpp | 32 #define TEST_ASSERT(x) UPRV_BLOCK_MACRO_BEGIN { \ macro 303 TEST_ASSERT(utext_isWritable(ut) == TRUE); in TestCMR() 441 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in TestCopyMove() 458 TEST_ASSERT(uti == usi); in TestCopyMove() 459 TEST_ASSERT(utc == usc); in TestCopyMove() 471 TEST_ASSERT(uti == expectedNativeLength); in TestCopyMove() 517 TEST_ASSERT(actualDelta == expectedDelta); in TestReplace() 535 TEST_ASSERT(uti == usi); in TestReplace() 536 TEST_ASSERT(utc == usc); in TestReplace() 545 TEST_ASSERT(uti == expectedNativeLength); in TestReplace() [all …]
|
D | rbbiapts.cpp | 43 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro 282 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText() 294 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); in TestGetSetAdoptText() 297 TEST_ASSERT(tstr == str2); in TestGetSetAdoptText() 300 TEST_ASSERT(tstr == str1); in TestGetSetAdoptText() 315 TEST_ASSERT(rb->preceding(2) == 0); in TestGetSetAdoptText() 316 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); in TestGetSetAdoptText() 339 TEST_ASSERT(pos==0); in TestGetSetAdoptText() 341 TEST_ASSERT(pos==5); in TestGetSetAdoptText() 343 TEST_ASSERT(pos==6); in TestGetSetAdoptText() [all …]
|
D | itspoof.cpp | 38 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro 140 TEST_ASSERT(UnicodeString("lllOO") == dest); in testSpoofAPI() 141 TEST_ASSERT(&dest == &retStr); in testSpoofAPI() 262 TEST_ASSERT(0 == position); in testInvisible() 361 TEST_ASSERT(fileSize>0); in testConfData() 408 TEST_ASSERT(actual == expected); in testConfData() 429 TEST_ASSERT(USCRIPT_CODE_LIMIT <= ScriptSet::SCRIPT_LIMIT); in testScriptSet() 432 TEST_ASSERT(u_getIntPropertyMaxValue(UCHAR_SCRIPT) < ScriptSet::SCRIPT_LIMIT); in testScriptSet() 438 TEST_ASSERT(s1 == s2); in testScriptSet() 441 TEST_ASSERT(!(s1 == s2)); in testScriptSet() [all …]
|
D | alphaindextst.cpp | 82 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro 103 TEST_ASSERT(28 == lc); // 26 letters plus two under/overflow labels. in APITest() 113 TEST_ASSERT(coll.isValid()); in APITest() 117 TEST_ASSERT(originalColl == &index->getCollator()); in APITest() 147 TEST_ASSERT(&aip == index.getAlias()); in APITest() 151 TEST_ASSERT(35 < lc); // Japanese should add a bunch. Don't rely on the exact value. in APITest() 162 TEST_ASSERT(*germanCol == indexCol); in APITest() 166 TEST_ASSERT(ELLIPSIS == s); in APITest() 168 TEST_ASSERT(ELLIPSIS == s); in APITest() 170 TEST_ASSERT(ELLIPSIS == s); in APITest() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | utexttst.c | 37 #define TEST_ASSERT(x) UPRV_BLOCK_MACRO_BEGIN { \ macro 81 TEST_ASSERT(c == 0x41); in TestAPI() 83 TEST_ASSERT(utb == NULL); in TestAPI() 87 TEST_ASSERT(uta == &utLoc); in TestAPI() 90 TEST_ASSERT(uta == &utLoc); in TestAPI() 105 TEST_ASSERT(utb != NULL); in TestAPI() 106 TEST_ASSERT(utb != uta); in TestAPI() 108 TEST_ASSERT(len == u_strlen(uString)); in TestAPI() 124 TEST_ASSERT(uta!=NULL); in TestAPI() 127 TEST_ASSERT(b==TRUE); in TestAPI() [all …]
|
D | reapits.c | 42 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro 240 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); in TestRegexCAPI() 246 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); in TestRegexCAPI() 253 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); in TestRegexCAPI() 259 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); in TestRegexCAPI() 274 TEST_ASSERT(u_strcmp(pat, p) == 0); in TestRegexCAPI() 275 TEST_ASSERT(len==(int32_t)strlen("abc*")); in TestRegexCAPI() 300 TEST_ASSERT(clone1 != NULL); in TestRegexCAPI() 305 TEST_ASSERT(clone2 != NULL); in TestRegexCAPI() 311 TEST_ASSERT(clone3 != NULL); in TestRegexCAPI() [all …]
|
D | tracetst.c | 52 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro 236 TEST_ASSERT(originalTEntryFunc != testTraceEntry); in TestTraceAPI() 237 TEST_ASSERT(originalTExitFunc != testTraceExit); in TestTraceAPI() 238 TEST_ASSERT(originalTDataFunc != testTraceData); in TestTraceAPI() 242 TEST_ASSERT(e == testTraceEntry); in TestTraceAPI() 243 TEST_ASSERT(x == testTraceExit); in TestTraceAPI() 244 TEST_ASSERT(d == testTraceData); in TestTraceAPI() 245 TEST_ASSERT(context == newContext); in TestTraceAPI() 257 TEST_ASSERT(level==UTRACE_OFF); in TestTraceAPI() 260 TEST_ASSERT(level==UTRACE_VERBOSE); in TestTraceAPI() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 26 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() 100 TEST_ASSERT(vm->fd >= 0, "KVM_CREATE_VM ioctl failed, " in vm_open() 142 TEST_ASSERT(vm != NULL, "Insufficient Memory"); in _vm_create() 194 TEST_ASSERT(vm->va_bits == 48, "Linear address width " in _vm_create() 202 TEST_ASSERT(false, "VM_MODE_PXXV48_4K not supported on " in _vm_create() 207 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", mode); in _vm_create() 266 TEST_ASSERT(ret == 0, "KVM_SET_USER_MEMORY_REGION IOCTL failed,\n" in kvm_vm_restart() 283 TEST_ASSERT(ret == 0, "%s: KVM_GET_DIRTY_LOG failed: %s", in kvm_vm_get_dirty_log() [all …]
|
D | elf.c | 23 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in elfhdr_get() 36 TEST_ASSERT((ident[EI_MAG0] == ELFMAG0) && (ident[EI_MAG1] == ELFMAG1) in elfhdr_get() 45 TEST_ASSERT(ident[EI_CLASS] == ELFCLASS64, in elfhdr_get() 52 TEST_ASSERT(((BYTE_ORDER == LITTLE_ENDIAN) in elfhdr_get() 67 TEST_ASSERT(ident[EI_VERSION] == EV_CURRENT, in elfhdr_get() 81 TEST_ASSERT(offset_rv == 0, "Seek to ELF header failed,\n" in elfhdr_get() 84 TEST_ASSERT(hdrp->e_phentsize == sizeof(Elf64_Phdr), in elfhdr_get() 89 TEST_ASSERT(hdrp->e_shentsize == sizeof(Elf64_Shdr), in elfhdr_get() 123 TEST_ASSERT(fd >= 0, "Failed to open ELF file,\n" in kvm_vm_elf_load() 142 TEST_ASSERT(offset_rv == offset, in kvm_vm_elf_load() [all …]
|
D | io.c | 51 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_write() 58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write() 64 TEST_ASSERT(false, "Unexpected EOF,\n" in test_write() 70 TEST_ASSERT(rc >= 0, "Unexpected ret from write,\n" in test_write() 128 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_read() 135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read() 141 TEST_ASSERT(false, "Unexpected EOF,\n" in test_read() 147 TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" in test_read()
|
/external/linux-kselftest/tools/testing/selftests/kvm/s390x/ |
D | sync_regs_test.c | 40 TEST_ASSERT(left->reg == right->reg, \ 94 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 101 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 109 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 116 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 124 TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); in main() 125 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in main() 129 TEST_ASSERT(run->s390_sieic.icptcode == 4 && in main() 149 TEST_ASSERT(rv == 0, "vcpu_run failed: %d\n", rv); in main() 150 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in main() [all …]
|
D | memop.c | 67 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in main() 83 TEST_ASSERT(!memcmp(mem1, mem2, maxsize), in main() 94 TEST_ASSERT(rv == -1 && errno == E2BIG, "ioctl allows insane sizes"); in main() 104 TEST_ASSERT(rv == -1 && (errno == EINVAL || errno == ENOMEM), in main() 115 TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows all flags"); in main() 125 TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows bad operations"); in main() 135 TEST_ASSERT(rv > 0, "ioctl does not report bad guest memory access"); in main() 145 TEST_ASSERT(rv == -1 && errno == EFAULT, in main() 159 TEST_ASSERT(rv == -1 && errno == EINVAL, "ioctl allows ARs > 15"); in main()
|
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/ |
D | vmx_dirty_log_test.c | 122 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main() 129 TEST_ASSERT(false, "%s at %s:%d", (const char *)uc.args[0], in main() 139 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main() 140 TEST_ASSERT(host_test_mem[0] == 1, "Page 0 not written by guest\n"); in main() 142 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main() 143 TEST_ASSERT(host_test_mem[0] == 0xaaaaaaaaaaaaaaaaULL, "Page 0 written by guest\n"); in main() 146 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main() 147 TEST_ASSERT(host_test_mem[4096 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 1 written by guest\n"); in main() 148 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main() 149 TEST_ASSERT(host_test_mem[8192 / 8] == 0xaaaaaaaaaaaaaaaaULL, "Page 2 written by guest\n"); in main() [all …]
|
D | sync_regs_test.c | 43 TEST_ASSERT(left->reg == right->reg, \ in compare_regs() 110 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 117 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 125 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 132 TEST_ASSERT(rv < 0 && errno == EINVAL, in main() 141 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main() 163 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main() 167 TEST_ASSERT(run->s.regs.regs.rbx == 0xBAD1DEA + 1, in main() 170 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main() 190 TEST_ASSERT(run->exit_reason == KVM_EXIT_IO, in main() [all …]
|
D | hyperv_cpuid.c | 54 TEST_ASSERT(hv_cpuid_entries->nent == 6, in test_hv_cpuid() 59 TEST_ASSERT(hv_cpuid_entries->nent == 7, in test_hv_cpuid() 67 TEST_ASSERT((entry->function >= 0x40000000) && in test_hv_cpuid() 72 TEST_ASSERT(entry->index == 0, in test_hv_cpuid() 75 TEST_ASSERT(entry->flags == 0, in test_hv_cpuid() 78 TEST_ASSERT(!entry->padding[0] && !entry->padding[1] && in test_hv_cpuid() 84 TEST_ASSERT(nononarchcs == !smt_possible(), in test_hv_cpuid() 107 TEST_ASSERT(ret == -1 && errno == E2BIG, in test_hv_cpuid_e2big()
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 231 TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " in virt_pgd_alloc() 264 TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " in virt_pg_map() 267 TEST_ASSERT((vaddr % vm->page_size) == 0, in virt_pg_map() 271 TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, in virt_pg_map() 275 TEST_ASSERT((paddr % vm->page_size) == 0, in virt_pg_map() 279 TEST_ASSERT((paddr >> vm->page_shift) <= vm->max_gfn, in virt_pg_map() 550 TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " in addr_gva2gpa() 579 TEST_ASSERT(false, "No mapping for vm virtual address, " in addr_gva2gpa() 637 TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); in vcpu_setup() 731 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/lib/s390x/ |
D | processor.c | 22 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in virt_pgd_alloc() 76 TEST_ASSERT((gva % vm->page_size) == 0, in virt_pg_map() 80 TEST_ASSERT(sparsebit_is_set(vm->vpages_valid, in virt_pg_map() 84 TEST_ASSERT((gpa % vm->page_size) == 0, in virt_pg_map() 88 TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, in virt_pg_map() 135 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in addr_gva2gpa() 141 TEST_ASSERT(!(entry[idx] & REGION_ENTRY_INVALID), in addr_gva2gpa() 149 TEST_ASSERT(!(entry[idx] & PAGE_INVALID), in addr_gva2gpa() 249 TEST_ASSERT(vm->page_size == 4096, "Unsupported page size: 0x%x", in vm_vcpu_add_default()
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/ |
D | processor.c | 37 TEST_ASSERT(vm->pgtable_levels == 4, in pud_index() 48 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() 265 TEST_ASSERT(false, "AArch64 does not support 4K sized pages " in aarch64_vcpu_setup() [all …]
|
/external/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
D | copy_assign.pass.cpp | 43 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()
|
D | move_assign.pass.cpp | 49 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/llvm-project/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
D | copy_assign.pass.cpp | 42 TEST_ASSERT(it != endIt); in TEST_SUITE() 45 TEST_ASSERT(it != endIt); in TEST_SUITE() 47 TEST_ASSERT(it.depth() == 1); in TEST_SUITE() 65 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator() 68 TEST_ASSERT(it != endIt); in createDifferentInterestingIterator() 70 TEST_ASSERT(it.depth() == 2); in createDifferentInterestingIterator()
|