Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 2472) sorted by relevance

12345678910>>...99

/external/valgrind/main/memcheck/tests/
Dmemalign2.c31 assert(sizeof(long int) == sizeof(void*)); in main()
42 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024)); in main()
50 piece = malloc(1024 * 1000); assert (piece); in main()
55 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024)); in main()
56 piece = malloc(1024 * 100); assert (piece); in main()
60 p = memalign(0, 100); assert(0 == (long)p % 8); in main()
61 p = memalign(1, 100); assert(0 == (long)p % 8); in main()
62 p = memalign(2, 100); assert(0 == (long)p % 8); in main()
63 p = memalign(3, 100); assert(0 == (long)p % 8); in main()
64 p = memalign(4, 100); assert(0 == (long)p % 8); in main()
[all …]
Dunit_oset.c23 #define vg_assert(e) assert(e)
25 #define vg_assert2(e, fmt, args...) assert(e)
34 #define vgPlain_ssort(a,b,c,d) assert(a)
35 #define vgPlain_vcbprintf(a,b,...) assert(a == b)
124 assert( VG_(OSetGen_Contains)(oset, vs[i]) ); in example1singleset()
130 assert( ! VG_(OSetGen_Contains)(oset, &v) ); in example1singleset()
133 assert( ! VG_(OSetGen_Contains)(oset, &v) ); in example1singleset()
136 assert( ! VG_(OSetGen_Contains)(oset, &v) ); in example1singleset()
141 assert( vs[i] == VG_(OSetGen_Lookup)(oset, vs[i]) ); in example1singleset()
152 assert(prev < curr); in example1singleset()
[all …]
/external/valgrind/main/drd/tests/
Dtrylock.c30 r = pthread_rwlock_init(&rwlock, NULL); assert(r == 0); in main()
32 r = pthread_rwlock_wrlock(&rwlock); assert(r == 0); in main()
33 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main()
35 r = pthread_rwlock_trywrlock(&rwlock); assert(r == 0); in main()
36 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main()
39 r = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); assert(r == 0); in main()
40 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main()
43 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0); in main()
44 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0); in main()
45 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0); in main()
[all …]
Dunit_bitmap.c60 { assert(0); } in DRD_()
64 { assert(0); } in VG_()
67 { assert(0); } in VG_()
160 assert(bm_equal_print_diffs(bm2, bm)); in bm_test1()
180 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
181 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
183 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
184 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
186 assert(! DRD_(bm_equal)(bm1, bm2)); in bm_test2()
187 assert(! DRD_(bm_equal)(bm2, bm1)); in bm_test2()
[all …]
/external/libvpx/libwebm/
Dmkvparser.cpp29 assert(pReader); in ReadUInt()
30 assert(pos >= 0); in ReadUInt()
103 assert(pReader); in GetUIntLength()
104 assert(pos >= 0); in GetUIntLength()
109 assert(status >= 0); in GetUIntLength()
110 assert((total < 0) || (available <= total)); in GetUIntLength()
124 assert(status == 0); in GetUIntLength()
146 assert(pReader); in UnserializeUInt()
147 assert(pos >= 0); in UnserializeUInt()
179 assert(pReader); in UnserializeFloat()
[all …]
/external/valgrind/main/helgrind/tests/
Dtc20_verifywrap.c30 assert(0); /* does not run */ in lazy_child()
76 r= pthread_create( &child, NULL, racy_child, NULL ); assert(!r); in main()
79 r= pthread_join( child, NULL ); assert(!r); in main()
83 r= pthread_join( pthread_self(), NULL ); assert(r); in main()
94 assert(r); /* glibc >= 2.4: the call should fail */ in main()
96 assert(!r); /* glibc < 2.4: oh well, glibc didn't bounce this */ in main()
100 r= pthread_mutex_init( &mx2, NULL ); assert(!r); in main()
101 r= pthread_mutex_lock( &mx2 ); assert(!r); in main()
102 r= pthread_mutex_destroy( &mx2 ); assert(r); in main()
108 r= pthread_mutex_lock( &mx3 ); assert(r); in main()
[all …]
Dlocked_vs_unlocked2.c27 r= pthread_mutex_lock(&mx1a); assert(!r); in child_fn1()
28 r= pthread_mutex_lock(&mx1b); assert(!r); in child_fn1()
30 r= pthread_mutex_unlock(&mx1b); assert(!r); in child_fn1()
31 r= pthread_mutex_unlock(&mx1a); assert(!r); in child_fn1()
32 r= pthread_mutex_destroy(&mx1a); assert(!r); in child_fn1()
43 r= pthread_mutex_lock(&mx2a); assert(!r); in child_fn2()
44 r= pthread_mutex_lock(&mx2b); assert(!r); in child_fn2()
46 r= pthread_mutex_unlock(&mx2b); assert(!r); in child_fn2()
47 r= pthread_mutex_unlock(&mx2a); assert(!r); in child_fn2()
56 r= pthread_mutex_init(&mx1a, NULL); assert(!r); in main()
[all …]
Dtc15_laog_lockdel.c19 assert(mx1); in main()
20 assert(mx2); in main()
22 r = pthread_mutex_init( mx1, NULL ); assert(r==0); in main()
23 r = pthread_mutex_init( mx2, NULL ); assert(r==0); in main()
27 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
28 r = pthread_mutex_lock( mx2 ); assert(r==0); in main()
30 r = pthread_mutex_unlock( mx1 ); assert(r==0); in main()
31 r = pthread_mutex_unlock( mx2 ); assert(r==0); in main()
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error */ in main()
36 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
[all …]
Dlocked_vs_unlocked3.c26 r= pthread_mutex_lock(&mx); assert(!r); in child_fn1()
27 r= pthread_mutex_lock(&mx); assert(!r); in child_fn1()
29 r= pthread_mutex_unlock(&mx); assert(!r); in child_fn1()
30 r= pthread_mutex_unlock(&mx); assert(!r); in child_fn1()
48 assert(!r); in main()
50 assert(!r); in main()
51 r= pthread_mutex_init(&mx, &attr); assert(!r); in main()
53 r= pthread_create(&child2, NULL, child_fn2, NULL); assert(!r); in main()
54 r= pthread_create(&child1, NULL, child_fn1, NULL); assert(!r); in main()
56 r= pthread_join(child1, NULL); assert(!r); in main()
[all …]
Dtc23_bogus_condwait.c40 int r= pthread_mutex_lock( &mx[2] ); assert(!r); in grab_the_lock()
42 r= pthread_mutex_unlock( &mx[2] ); assert(!r); in grab_the_lock()
51 r= pthread_mutex_init(&mx[0], NULL); assert(!r); in main()
52 r= pthread_mutex_init(&mx[1], NULL); assert(!r); in main()
53 r= pthread_mutex_init(&mx[2], NULL); assert(!r); in main()
54 r= pthread_mutex_init(&mx[3], NULL); assert(!r); in main()
56 r= pthread_cond_init(&cv, NULL); assert(!r); in main()
57 r= pthread_rwlock_init(&rwl, NULL); assert(!r); in main()
59 quit_now = my_sem_init( "quit_now", 0,0 ); assert(quit_now); in main()
61 r= pthread_create( &grabber, NULL, grab_the_lock, NULL ); assert(!r); in main()
[all …]
Dtc13_laog1.c14 r = pthread_mutex_init( &mx1, NULL ); assert(r==0); in main()
15 r = pthread_mutex_init( &mx2, NULL ); assert(r==0); in main()
17 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()
18 r = pthread_mutex_lock( &mx2 ); assert(r==0); in main()
20 r = pthread_mutex_unlock( &mx1 ); assert(r==0); in main()
21 r = pthread_mutex_unlock( &mx2 ); assert(r==0); in main()
23 r = pthread_mutex_lock( &mx2 ); assert(r==0); /* error */ in main()
24 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()
26 r = pthread_mutex_unlock( &mx1 ); assert(r==0); in main()
27 r = pthread_mutex_unlock( &mx2 ); assert(r==0); in main()
Dtc12_rwl_trivial.c24 r = pthread_rwlock_init( &rwl, NULL ); assert(r == 0); in main()
26 r = pthread_rwlock_wrlock( &rwl ); assert(r == 0); in main()
27 r = pthread_rwlock_unlock( &rwl ); assert(r == 0); in main()
29 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0); in main()
30 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0); in main()
31 r = pthread_rwlock_unlock( &rwl ); assert(r == 0); in main()
32 r = pthread_rwlock_unlock( &rwl ); assert(r == 0); in main()
35 r = pthread_rwlock_unlock( &rwl ); assert(OS_IS_DARWIN || r == 0); in main()
37 r = pthread_rwlock_destroy( &rwl ); assert(r == 0); in main()
Dtc10_rec_lock.c21 assert(r==0); in nearly_main()
23 assert(r==0); in nearly_main()
25 assert(r==0); in nearly_main()
28 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
30 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
32 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
35 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()
37 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()
39 r = pthread_mutex_unlock( &mx1 ); assert(r == 0); in nearly_main()
/external/libxml2/
Dtriostr.c185 assert(target);
186 assert(source);
217 assert(target);
218 assert(source);
245 assert(string);
246 assert(substring);
273 assert(target);
274 assert(source);
303 assert(target);
304 assert(source);
[all …]
/external/llvm/lib/Target/R600/
DAMDILDeviceInfo.cpp35 assert(!is64bit && "This device does not support 64bit pointers!"); in getDeviceFromName()
36 assert(!is64on32bit && "This device does not support 64bit" in getDeviceFromName()
42 assert(!is64bit && "This device does not support 64bit pointers!"); in getDeviceFromName()
43 assert(!is64on32bit && "This device does not support 64bit" in getDeviceFromName()
49 assert(!is64bit && "This device does not support 64bit pointers!"); in getDeviceFromName()
50 assert(!is64on32bit && "This device does not support 64bit" in getDeviceFromName()
56 assert(!is64bit && "This device does not support 64bit pointers!"); in getDeviceFromName()
57 assert(!is64on32bit && "This device does not support 64bit" in getDeviceFromName()
63 assert(!is64bit && "This device does not support 64bit pointers!"); in getDeviceFromName()
64 assert(!is64on32bit && "This device does not support 64bit" in getDeviceFromName()
[all …]
/external/zlib/src/test/
Dinfcover.c163 assert(zone != NULL); in mem_setup()
301 out = malloc(len); assert(out != NULL); in inf()
309 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK); in inf()
311 in = h2b(hex, &have); assert(in != NULL); in inf()
320 ret = inflate(&strm, Z_NO_FLUSH); assert(err == 9 || ret == err); in inf()
325 assert(ret == Z_DATA_ERROR); in inf()
328 assert(ret == Z_MEM_ERROR); in inf()
332 assert(ret == Z_OK); in inf()
333 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_BUF_ERROR); in inf()
335 ret = inflateCopy(&copy, &strm); assert(ret == Z_OK); in inf()
[all …]
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/
DConstantUnion.h99 assert(type == constant.type);
112 assert(false && "Default missing");
121 assert(type == constant.type);
134 assert(false && "Default missing");
144 assert(type == constant.type);
148 default: assert(false && "Default missing");
157 assert(type == constant.type);
161 default: assert(false && "Default missing");
170 assert(type == constant.type);
174 default: assert(false && "Default missing");
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineOperand.h191 assert(!isReg() && "Register operands can't have target flags"); in setTargetFlags()
193 assert(SubReg_TargetFlags == F && "Target flags out of range"); in setTargetFlags()
196 assert(!isReg() && "Register operands can't have target flags"); in addTargetFlag()
198 assert((SubReg_TargetFlags & F) && "Target flags out of range"); in addTargetFlag()
260 assert(isReg() && "This is not a register operand!"); in getReg()
265 assert(isReg() && "Wrong MachineOperand accessor"); in getSubReg()
270 assert(isReg() && "Wrong MachineOperand accessor"); in isUse()
275 assert(isReg() && "Wrong MachineOperand accessor"); in isDef()
280 assert(isReg() && "Wrong MachineOperand accessor"); in isImplicit()
285 assert(isReg() && "Wrong MachineOperand accessor"); in isDead()
[all …]
/external/valgrind/main/memcheck/tests/darwin/
Daio.c38 assert( aio_read(&a) < 0); // invalid fd in main()
42 assert(a.aio_fildes >= 0); in main()
44 assert( aio_read(&a) < 0); // unaddressable aio_buf in main()
49 assert( aio_read(&a) == 0 ); in main()
51 assert( aio_read(&a) < 0 ); // (don't crash on the repeated &a) in main()
57 assert( aio_return(&a) > 0 ); // XXX: (undefined value error here) in main()
61 assert( aio_return(&a) < 0 ); // (repeated aio_return(); fails because in main()
67 assert(a.aio_fildes >= 0); in main()
69 assert( aio_write(&a) < 0); // unaddressable aio_buf in main()
74 assert( aio_write(&a) == 0 ); in main()
[all …]
/external/iptables/libiptc/
Dlibip4tc.c234 assert(m->u.match_size >= sizeof(STRUCT_ENTRY_MATCH));
235 assert(ALIGN(m->u.match_size) == m->u.match_size);
249 assert(e->target_offset >= sizeof(STRUCT_ENTRY));
250 assert(e->next_offset >= e->target_offset
255 assert(toff == e->target_offset);
260 assert(e->next_offset == ALIGN(e->next_offset));
261 assert(e->target_offset == ALIGN(e->target_offset));
262 assert(t->target.u.target_size == ALIGN(t->target.u.target_size));
263 assert(!TC_IS_CHAIN(t->target.u.user.name, h));
266 assert(t->target.u.target_size
[all …]
/external/clang/include/clang/AST/
DAPValue.h195 assert(isInt() && "Invalid accessor"); in getInt()
203 assert(isFloat() && "Invalid accessor"); in getFloat()
211 assert(isComplexInt() && "Invalid accessor"); in getComplexIntReal()
219 assert(isComplexInt() && "Invalid accessor"); in getComplexIntImag()
227 assert(isComplexFloat() && "Invalid accessor"); in getComplexFloatReal()
235 assert(isComplexFloat() && "Invalid accessor"); in getComplexFloatImag()
253 assert(isVector() && "Invalid accessor"); in getVectorElt()
254 assert(I < getVectorLength() && "Index out of range"); in getVectorElt()
261 assert(isVector() && "Invalid accessor"); in getVectorLength()
266 assert(isArray() && "Invalid accessor"); in getArrayInitializedElt()
[all …]
DCommentLexer.h100 assert(is(tok::text)); in getText()
105 assert(is(tok::text)); in setText()
111 assert(is(tok::unknown_command)); in getUnknownCommandName()
116 assert(is(tok::unknown_command)); in setUnknownCommandName()
122 assert(is(tok::backslash_command) || is(tok::at_command)); in getCommandID()
127 assert(is(tok::backslash_command) || is(tok::at_command)); in setCommandID()
132 assert(is(tok::verbatim_block_begin) || is(tok::verbatim_block_end)); in getVerbatimBlockID()
137 assert(is(tok::verbatim_block_begin) || is(tok::verbatim_block_end)); in setVerbatimBlockID()
142 assert(is(tok::verbatim_block_line)); in getVerbatimBlockText()
147 assert(is(tok::verbatim_block_line)); in setVerbatimBlockText()
[all …]
/external/webrtc/src/modules/audio_processing/
Daudio_buffer.cc26 assert(left != NULL && right != NULL && out != NULL); in StereoToMono()
98 assert(channel >= 0 && channel < num_channels_); in data()
107 assert(channel >= 0 && channel < num_channels_); in low_pass_split_data()
116 assert(channel >= 0 && channel < num_channels_); in high_pass_split_data()
125 assert(channel >= 0 && channel < num_mixed_channels_); in mixed_data()
131 assert(channel >= 0 && channel < num_mixed_low_pass_channels_); in mixed_low_pass_data()
137 assert(channel >= 0 && channel < num_channels_); in low_pass_reference()
146 assert(channel >= 0 && channel < num_channels_); in analysis_filter_state1()
151 assert(channel >= 0 && channel < num_channels_); in analysis_filter_state2()
156 assert(channel >= 0 && channel < num_channels_); in synthesis_filter_state1()
[all …]
/external/openssl/crypto/bio/
Dbss_bio.c170 assert(b != NULL); in bio_free()
199 assert(b != NULL); in bio_read()
200 assert(b->peer != NULL); in bio_read()
202 assert(peer_b != NULL); in bio_read()
203 assert(peer_b->buf != NULL); in bio_read()
235 assert(rest > 0); in bio_read()
240 assert(rest <= peer_b->len); in bio_read()
246 assert(peer_b->offset + chunk <= peer_b->size); in bio_read()
254 assert(peer_b->offset <= peer_b->size); in bio_read()
262 assert(chunk == rest); in bio_read()
[all …]
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AsmBackend.cpp173 assert(unsigned(Kind - FirstTargetFixupKind) < getNumFixupKinds() && in getFixupKindInfo()
185 assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!"); in applyFixup()
244 assert((int64_t)Value >= -32768 && in adjustFixupValue()
249 assert((int64_t)Value >= -(1LL << 31) && in adjustFixupValue()
262 assert((int64_t)Value >= -(1LL << 20) && in adjustFixupValue()
269 assert((int64_t)Value >= -(1LL << 20) && in adjustFixupValue()
277 assert((int64_t)Value >= -(1LL << 32) && in adjustFixupValue()
287 assert((int64_t)Value >= 0 && in adjustFixupValue()
297 assert((int64_t)Value >= 0 && in adjustFixupValue()
320 assert((int64_t) Value >= 0 && in adjustFixupValue()
[all …]

12345678910>>...99