Searched refs:assert (Results 276 - 300 of 10240) sorted by last modified time

<<11121314151617181920>>

/external/valgrind/main/memcheck/tests/amd64/
H A Dsse_memory.c8 #include <assert.h>
94 assert(nMem == 4 || nMem == 8 || nMem == 16 || nMem==0);
H A Dxor-undef-amd64.c4 #include <assert.h>
11 assert(junk);
/external/valgrind/main/memcheck/tests/
H A Datomic_incs.c16 #include <assert.h>
687 assert( IS_8_ALIGNED(p8) );
688 assert( IS_8_ALIGNED(p16) );
689 assert( IS_8_ALIGNED(p32) );
690 assert( IS_8_ALIGNED(p64) );
731 assert(p2 == child);
733 /* assert that child finished normally */
734 assert(WIFEXITED(status));
H A Dbadjump2.c1 #include <assert.h>
31 assert(res == 0);
34 assert(res == 0);
H A Dbadpoll.c1 #include <assert.h>
13 assert(ufds);
H A Dclireq_nofill.c4 #include <assert.h>
17 assert(s);
18 assert(*s == 0xaf);
30 assert(s);
31 assert(*s == 0xaf);
H A Dcond_ld_st.c22 #include <assert.h>
275 assert(Cond_D1 <= lc->inp_Cond && lc->inp_Cond <= Cond_U0);
276 assert(Addr_DV <= lc->inp_Addr && lc->inp_Addr <= Addr_UI);
277 assert(lc->inp_Alt == Alt_Da || lc->inp_Alt == Alt_Ub);
278 assert(lc->inp_Data == Data_Dc || lc->inp_Data == Data_Ud);
279 assert('A' <= lc->res && lc->res <= 'D');
280 assert(lc->defErr_Cond == 'Y' || lc->defErr_Cond == 'N');
281 assert(lc->defErr_Addr == 'Y' || lc->defErr_Addr == 'N');
282 assert(lc->addrErr == 'Y' || lc->addrErr == 'N');
296 default: assert(
[all...]
H A Dcustom_alloc.c3 #include <assert.h>
19 assert(p != ((void*)(-1)));
63 assert(RZ > 0);
H A Ddw4.c13 #include <assert.h>
25 assert(undefp);
48 assert(onheap);
H A Derr_disable3.c7 #include <assert.h>
52 assert(!r);
56 assert(!r);
H A Derr_disable4.c22 #include <assert.h>
48 int r = sem_wait(&sem); assert(!r);
56 int r = sem_wait(&sem); assert(!r);
76 r = sem_init(&sem, 0, 0); assert(!r);
79 r = pthread_attr_init(&attr); assert(!r);
85 assert(!r);
90 r = sem_post(&sem); assert(!r);
95 r = pthread_join(child[i], NULL); assert(!r);
108 assert(!r);
113 r = sem_post(&sem); assert(!
[all...]
H A Derror_counts.c3 #include <assert.h>
17 assert(sizeof(long) == sizeof(void*));
H A Dexecve2.c1 #include <assert.h>
10 assert(0); // shouldn't get here
H A Dfile_locking.c7 #include <assert.h>
50 assert(flags >= 0);
52 assert(0);
117 assert(wait_result >= 0);
H A Dleak-pool.c4 #include <assert.h>
26 assert(p->used + n < p->allocated);
36 assert(p);
40 assert(p->buf);
87 assert(0);
103 assert(argc == 2);
104 assert(argv[1]);
105 assert(strlen(argv[1]) == 1);
106 assert(argv[1][0] >= '0' && argv[1][0] <= '5');
H A Dmalloc_free_fill.c6 #include <assert.h>
25 a = malloc(10 * sizeof(int)); assert(a);
34 r = malloc(30 * sizeof(int)); assert(r);
39 r = realloc(r, 40 * sizeof(int)); assert(r);
49 r = malloc(30 * sizeof(int)); assert(r);
54 r = realloc(r, 20 * sizeof(int)); assert(r);
62 a = calloc(100, sizeof(int)); assert(r);
H A Dmalloc_usable.c1 #include <assert.h>
14 assert(99 == malloc_usable_size(x));
15 assert( 0 == malloc_usable_size(NULL));
16 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
H A Dmemalign2.c16 #include <assert.h>
31 assert(sizeof(long int) == sizeof(void*));
41 // assert failures (as reclaimable blocks cannot be splitted).
42 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024));
46 // an assert. Note that the test has to be run with a --free-list-vol
50 piece = malloc(1024 * 1000); assert (piece);
55 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024));
56 piece = malloc(1024 * 100); assert (piece);
60 p = memalign(0, 100); assert(0 == (long)p % 8);
61 p = memalign(1, 100); assert(
[all...]
/external/valgrind/main/memcheck/tests/common/
H A Dsh-mem-vec128.tmpl.c10 #include <assert.h>
39 assert(p[3] == 0x88);
43 assert(p[3] == 0x55);
46 assert(0);
78 assert(r == 1 || r == 0);
191 assert(r == 1 || r == 0);
285 assert(totFreq == N_BYTES);
/external/valgrind/main/memcheck/tests/darwin/
H A Daio.c1 #include <assert.h>
35 // assert( aio_return(&a) < 0); // (aiocbp hasn't been inited)
38 assert( aio_read(&a) < 0); // invalid fd
42 assert(a.aio_fildes >= 0);
44 assert( aio_read(&a) < 0); // unaddressable aio_buf
49 assert( aio_read(&a) == 0 );
51 assert( aio_read(&a) < 0 ); // (don't crash on the repeated &a)
57 assert( aio_return(&a) > 0 ); // XXX: (undefined value error here)
61 assert( aio_return(&a) < 0 ); // (repeated aio_return(); fails because
67 assert(
[all...]
H A Denv.c1 #include <assert.h>
15 assert( 0 == strcmp(getenv("MYVAR"), val1) );
18 assert( 0 == strcmp(getenv("MYVAR"), val2) );
21 assert( 0 == strcmp(getenv("MYVAR"), val2) );
24 assert( 0 == strcmp(getenv("MYVAR"), "xxxx") );
27 assert( NULL == getenv("MYVAR") );
H A Dscalar.c1845 assert(0);
H A Dscalar.h1 #include <assert.h>
33 #define FAIL assert(-1 == res);
34 #define SUCC assert(-1 != res);
/external/valgrind/main/memcheck/tests/linux/
H A Dbrk.c1 #include <assert.h>
33 assert( 0 == brk(orig_ds) ); // libc brk()
H A Dgetregset.c3 #include <assert.h>
68 assert(iov.iov_base == buf);
69 assert(iov.iov_len > 0 && iov.iov_len < sizeof(buf));
73 assert(non_empty(buf, iov.iov_len));

Completed in 99 milliseconds

<<11121314151617181920>>