/netbsd/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_list_test.cc | 77 CHECK_EQ(l.size(), 0); in TEST() 79 CHECK_EQ(l.size(), 1); in TEST() 80 CHECK_EQ(l.back(), x); in TEST() 87 CHECK_EQ(l.size(), 1); in TEST() 88 CHECK_EQ(l.back(), x); in TEST() 97 CHECK_EQ(l.size(), 3); in TEST() 99 CHECK_EQ(l.back(), x); in TEST() 103 CHECK_EQ(l.size(), 2); in TEST() 105 CHECK_EQ(l.back(), x); in TEST() 114 CHECK_EQ(l.size(), 3); in TEST() [all …]
|
H A D | sanitizer_common_test.cc | 94 CHECK_EQ(v.capacity(), GetPageSizeCached() / sizeof(uptr)); in TEST() 99 CHECK_EQ(0U, v.size()); in TEST() 103 CHECK_EQ(0U, v.size()); in TEST() 107 CHECK_EQ(10000U, v.size()); in TEST() 112 CHECK_EQ(100U, v.size()); in TEST() 113 CHECK_EQ(v.capacity(), cap); in TEST() 116 CHECK_EQ(100U, v.size()); in TEST() 117 CHECK_EQ(v.capacity(), cap); in TEST() 136 CHECK_EQ(0U, empty_vector.size()); in TEST() 386 CHECK_EQ(res, res2); in TEST() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
H A D | tsan_test_util_posix.cc | 105 CHECK_EQ(__interceptor_pthread_mutex_init((pthread_mutex_t*)mtx_, 0), 0); in Init() 108 CHECK_EQ(pthread_spin_init((pthread_spinlock_t*)mtx_, 0), 0); in Init() 131 CHECK_EQ(pthread_spin_destroy((pthread_spinlock_t*)mtx_), 0); in Destroy() 140 CHECK_EQ(__interceptor_pthread_mutex_lock((pthread_mutex_t*)mtx_), 0); in Lock() 143 CHECK_EQ(pthread_spin_lock((pthread_spinlock_t*)mtx_), 0); in Lock() 165 CHECK_EQ(__interceptor_pthread_mutex_unlock((pthread_mutex_t*)mtx_), 0); in Unlock() 168 CHECK_EQ(pthread_spin_unlock((pthread_spinlock_t*)mtx_), 0); in Unlock() 177 CHECK_EQ(__interceptor_pthread_rwlock_rdlock((pthread_rwlock_t*)mtx_), 0); in ReadLock() 247 CHECK_EQ(expect_report, false); in HandleEvent() 280 CHECK_EQ(ErrCode, errno); // In no case must errno be changed. in HandleEvent() [all …]
|
/netbsd/external/gpl3/gdb/dist/gold/testsuite/ |
H A D | incr_comdat_test_1.cc | 49 #define CHECK_EQ(var, expected) \ macro 63 CHECK_EQ(bar(), 5); in main() 64 CHECK_EQ(foo(), 11); in main() 65 CHECK_EQ(a.sum(55), 11 + 55); in main() 66 CHECK_EQ(a.sum(66), 11 + 55 + 66); in main()
|
/netbsd/external/gpl3/gdb.old/dist/gold/testsuite/ |
H A D | incr_comdat_test_1.cc | 49 #define CHECK_EQ(var, expected) \ macro 63 CHECK_EQ(bar(), 5); in main() 64 CHECK_EQ(foo(), 11); in main() 65 CHECK_EQ(a.sum(55), 11 + 55); in main() 66 CHECK_EQ(a.sum(66), 11 + 55 + 66); in main()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_interface_java.cc | 70 CHECK_EQ(jctx, 0); in __tsan_java_init() 73 CHECK_EQ(heap_begin % kHeapAlignment, 0); in __tsan_java_init() 74 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init() 94 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_alloc() 95 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_alloc() 107 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_free() 108 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_free() 120 CHECK_EQ(src % kHeapAlignment, 0); in __tsan_java_move() 121 CHECK_EQ(dst % kHeapAlignment, 0); in __tsan_java_move() 122 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_move() [all …]
|
H A D | tsan_rtl_proc.cc | 33 CHECK_EQ(proc->thr, nullptr); in ProcDestroy() 46 CHECK_EQ(thr->proc1, nullptr); in ProcWire() 47 CHECK_EQ(proc->thr, nullptr); in ProcWire() 53 CHECK_EQ(thr->proc1, proc); in ProcUnwire() 54 CHECK_EQ(proc->thr, thr); in ProcUnwire()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_interface_java.cc | 72 CHECK_EQ(jctx, 0); in __tsan_java_init() 75 CHECK_EQ(heap_begin % kHeapAlignment, 0); in __tsan_java_init() 76 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init() 96 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_alloc() 97 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_alloc() 109 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_free() 110 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_free() 122 CHECK_EQ(src % kHeapAlignment, 0); in __tsan_java_move() 123 CHECK_EQ(dst % kHeapAlignment, 0); in __tsan_java_move() 124 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_move() [all …]
|
H A D | tsan_rtl_proc.cc | 35 CHECK_EQ(proc->thr, nullptr); in ProcDestroy() 48 CHECK_EQ(thr->proc1, nullptr); in ProcWire() 49 CHECK_EQ(proc->thr, nullptr); in ProcWire() 55 CHECK_EQ(thr->proc1, proc); in ProcUnwire() 56 CHECK_EQ(proc->thr, thr); in ProcUnwire()
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_interface_java.cc | 70 CHECK_EQ(jctx, 0); in __tsan_java_init() 73 CHECK_EQ(heap_begin % kHeapAlignment, 0); in __tsan_java_init() 74 CHECK_EQ(heap_size % kHeapAlignment, 0); in __tsan_java_init() 94 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_alloc() 95 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_alloc() 107 CHECK_EQ(ptr % kHeapAlignment, 0); in __tsan_java_free() 108 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_free() 120 CHECK_EQ(src % kHeapAlignment, 0); in __tsan_java_move() 121 CHECK_EQ(dst % kHeapAlignment, 0); in __tsan_java_move() 122 CHECK_EQ(size % kHeapAlignment, 0); in __tsan_java_move() [all …]
|
H A D | tsan_rtl_proc.cc | 33 CHECK_EQ(proc->thr, nullptr); in ProcDestroy() 46 CHECK_EQ(thr->proc1, nullptr); in ProcWire() 47 CHECK_EQ(proc->thr, nullptr); in ProcWire() 53 CHECK_EQ(thr->proc1, proc); in ProcUnwire() 54 CHECK_EQ(proc->thr, thr); in ProcUnwire()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_procmaps_linux.cc | 40 CHECK_EQ(*data_.current++, '-'); in Next() 42 CHECK_EQ(*data_.current++, ' '); in Next() 52 CHECK_EQ(*data_.current++, ' '); in Next() 54 CHECK_EQ(*data_.current++, ' '); in Next() 56 CHECK_EQ(*data_.current++, ':'); in Next() 58 CHECK_EQ(*data_.current++, ' '); in Next()
|
H A D | sanitizer_coverage_fuchsia.cc | 127 CHECK_EQ(vmo_, ZX_HANDLE_INVALID); in Setup() 128 CHECK_EQ(array_, nullptr); in Setup() 134 CHECK_EQ(status, ZX_OK); in Setup() 150 CHECK_EQ(status, ZX_OK); in Setup() 172 CHECK_EQ(status, ZX_OK); in Setup() 186 CHECK_EQ(enabled, common_flags()->coverage); in InitializeCoverage() 187 CHECK_EQ(dir, common_flags()->coverage_dir); in InitializeCoverage()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_procmaps_linux.cc | 43 CHECK_EQ(*data_.current++, '-'); in Next() 45 CHECK_EQ(*data_.current++, ' '); in Next() 55 CHECK_EQ(*data_.current++, ' '); in Next() 57 CHECK_EQ(*data_.current++, ' '); in Next() 59 CHECK_EQ(*data_.current++, ':'); in Next() 61 CHECK_EQ(*data_.current++, ' '); in Next()
|
H A D | sanitizer_coverage_fuchsia.cc | 130 CHECK_EQ(vmo_, ZX_HANDLE_INVALID); in Setup() 131 CHECK_EQ(array_, nullptr); in Setup() 137 CHECK_EQ(status, ZX_OK); in Setup() 153 CHECK_EQ(status, ZX_OK); in Setup() 175 CHECK_EQ(status, ZX_OK); in Setup() 189 CHECK_EQ(enabled, common_flags()->coverage); in InitializeCoverage() 190 CHECK_EQ(dir, common_flags()->coverage_dir); in InitializeCoverage()
|
H A D | sanitizer_thread_registry.cc | 58 CHECK_EQ(false, detached); in SetJoined() 59 CHECK_EQ(ThreadStatusFinished, status); in SetJoined() 161 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread() 165 CHECK_EQ(alive_threads_, max_alive_threads_); in CreateThread() 220 CHECK_EQ(SANITIZER_FUCHSIA ? ThreadStatusCreated : ThreadStatusRunning, in SetThreadName() 295 CHECK_EQ(tctx->status, ThreadStatusCreated); in FinishThread() 313 CHECK_EQ(ThreadStatusCreated, tctx->status); in StartThread() 325 CHECK_EQ(tctx->status, ThreadStatusDead); in QuarantinePush() 348 CHECK_EQ(tctx->user_id, 0); in SetThreadUserId()
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_procmaps_linux.cc | 40 CHECK_EQ(*data_.current++, '-'); in Next() 42 CHECK_EQ(*data_.current++, ' '); in Next() 52 CHECK_EQ(*data_.current++, ' '); in Next() 54 CHECK_EQ(*data_.current++, ' '); in Next() 56 CHECK_EQ(*data_.current++, ':'); in Next() 58 CHECK_EQ(*data_.current++, ' '); in Next()
|
H A D | sanitizer_coverage_fuchsia.cc | 127 CHECK_EQ(vmo_, ZX_HANDLE_INVALID); in Setup() 128 CHECK_EQ(array_, nullptr); in Setup() 134 CHECK_EQ(status, ZX_OK); in Setup() 150 CHECK_EQ(status, ZX_OK); in Setup() 172 CHECK_EQ(status, ZX_OK); in Setup() 186 CHECK_EQ(enabled, common_flags()->coverage); in InitializeCoverage() 187 CHECK_EQ(dir, common_flags()->coverage_dir); in InitializeCoverage()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/asan/ |
H A D | asan_fuchsia.cc | 40 CHECK_EQ(kShadowGapEnd, kHighShadowBeg - 1); in InitializeShadowMemory() 41 CHECK_EQ(kHighMemEnd, __sanitizer::ShadowBounds.memory_limit - 1); in InitializeShadowMemory() 42 CHECK_EQ(kHighMemBeg, __sanitizer::ShadowBounds.shadow_limit); in InitializeShadowMemory() 43 CHECK_EQ(kHighShadowBeg, __sanitizer::ShadowBounds.shadow_base); in InitializeShadowMemory() 44 CHECK_EQ(kShadowGapEnd, __sanitizer::ShadowBounds.shadow_base - 1); in InitializeShadowMemory() 45 CHECK_EQ(kLowShadowEnd, 0); in InitializeShadowMemory() 46 CHECK_EQ(kLowShadowBeg, 0); in InitializeShadowMemory()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/asan/ |
H A D | asan_fuchsia.cc | 42 CHECK_EQ(kShadowGapEnd, kHighShadowBeg - 1); in InitializeShadowMemory() 43 CHECK_EQ(kHighMemEnd, __sanitizer::ShadowBounds.memory_limit - 1); in InitializeShadowMemory() 44 CHECK_EQ(kHighMemBeg, __sanitizer::ShadowBounds.shadow_limit); in InitializeShadowMemory() 45 CHECK_EQ(kHighShadowBeg, __sanitizer::ShadowBounds.shadow_base); in InitializeShadowMemory() 46 CHECK_EQ(kShadowGapEnd, __sanitizer::ShadowBounds.shadow_base - 1); in InitializeShadowMemory() 47 CHECK_EQ(kLowShadowEnd, 0); in InitializeShadowMemory() 48 CHECK_EQ(kLowShadowBeg, 0); in InitializeShadowMemory()
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
H A D | asan_fuchsia.cc | 40 CHECK_EQ(kShadowGapEnd, kHighShadowBeg - 1); in InitializeShadowMemory() 41 CHECK_EQ(kHighMemEnd, __sanitizer::ShadowBounds.memory_limit - 1); in InitializeShadowMemory() 42 CHECK_EQ(kHighMemBeg, __sanitizer::ShadowBounds.shadow_limit); in InitializeShadowMemory() 43 CHECK_EQ(kHighShadowBeg, __sanitizer::ShadowBounds.shadow_base); in InitializeShadowMemory() 44 CHECK_EQ(kShadowGapEnd, __sanitizer::ShadowBounds.shadow_base - 1); in InitializeShadowMemory() 45 CHECK_EQ(kLowShadowEnd, 0); in InitializeShadowMemory() 46 CHECK_EQ(kLowShadowBeg, 0); in InitializeShadowMemory()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/msan/ |
H A D | msan_linux.cc | 85 CHECK_EQ(prev_end, start); in CheckMemoryLayoutSanity() 93 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 98 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 103 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 216 CHECK_EQ(key.key, tsd); in MsanTSDDtor() 229 CHECK_EQ(0, pthread_key_create(&tsd_key, destructor)); in MsanTSDInit() 240 CHECK_EQ(0, msan_current_thread); in SetCurrentThread() 251 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd)); in MsanTSDDtor()
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/hwasan/ |
H A D | hwasan_linux.cpp | 84 CHECK_EQ(kHighShadowEnd + 1, kHighMemStart); in PrintAddressSpaceLayout() 89 CHECK_EQ(kLowMemEnd + 1, kHighShadowStart); in PrintAddressSpaceLayout() 94 CHECK_EQ(kLowMemEnd + 1, kLowShadowStart); in PrintAddressSpaceLayout() 96 CHECK_EQ(0, kLowMemStart); in PrintAddressSpaceLayout() 154 CHECK_EQ(tag_bits, kTagBits); in InitializeOsSupport() 155 CHECK_EQ(tag_shift, kAddressTagShift); in InitializeOsSupport() 196 CHECK_EQ(kHighMemStart % GetMmapGranularity(), 0); in InitShadow() 270 CHECK_EQ(0, pthread_setspecific(tsd_key, in HwasanTSDThreadInit() 277 CHECK_EQ(0, pthread_setspecific(tsd_key, (void *)(iterations - 1))); in HwasanTSDDtor() 286 CHECK_EQ(0, pthread_key_create(&tsd_key, HwasanTSDDtor)); in HwasanTSDInit()
|
H A D | hwasan_thread.cpp | 40 CHECK_EQ(0, unique_id_); // try to catch bad stack reuse in Init() 41 CHECK_EQ(0, stack_top_); in Init() 42 CHECK_EQ(0, stack_bottom_); in Init() 67 CHECK_EQ(GetCurrentThread(), this); in InitStackRingBuffer() 108 CHECK_EQ(GetCurrentThread(), this); in Destroy()
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
H A D | tsan_shadow_test.cc | 67 CHECK_EQ((uptr)data % kShadowSize, 0); in TEST() 69 CHECK_EQ(s0 % kShadowSize, 0); in TEST() 71 CHECK_EQ(s0, MemToShadow((uptr)&data[i])); in TEST() 73 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST() 75 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
|