Home
last modified time | relevance | path

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

/bionic/tests/
Dassert_test.cpp22 TEST(assert, assert_true) { in TEST() argument
23 assert(true); in TEST()
26 TEST(assert, assert_false) { in TEST() argument
27 EXPECT_DEATH(assert(false), in TEST()
37 TEST(assert, assert_true_NDEBUG) { in TEST() argument
38 assert(true); in TEST()
41 TEST(assert, assert_false_NDEBUG) { in TEST() argument
42 assert(false); in TEST()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dengine.c248 assert(m->coldp != NULL); in matcher()
254 assert(m->coldp < m->endp); in matcher()
288 assert(g->backrefs); /* must be back references doing it */ in matcher()
289 assert(g->nplus == 0 || m->lastpos != NULL); in matcher()
300 assert(m->pmatch[i].rm_so == (regoff_t)-1); in matcher()
301 assert(m->pmatch[i].rm_eo == (regoff_t)-1); in matcher()
307 assert(dp == NULL || dp == endp); in matcher()
314 assert(start <= stop); in matcher()
324 assert(m->pmatch != NULL); in matcher()
400 assert(nope); in dissect()
[all …]
Dregcomp.c386 assert(!MORE() || SEE(stop)); in p_ere()
407 assert(MORE()); /* caller should have ensured this */ in p_ere_exp()
423 assert(p->pend[subno] != 0); in p_ere_exp()
631 assert(MORE()); /* caller should have ensured this */ in p_simp_re()
661 assert(p->pend[subno] != 0); in p_simp_re()
680 assert(i < NPAREN); in p_simp_re()
682 assert(i <= p->g->nsub); in p_simp_re()
684 assert(p->pbegin[i] != 0); in p_simp_re()
685 assert(OP(p->strip[p->pbegin[i]]) == OLPAREN); in p_simp_re()
686 assert(OP(p->strip[p->pend[i]]) == ORPAREN); in p_simp_re()
[all …]
Dregexec.c223 assert(!(g->iflags&BAD));
/bionic/libc/bionic/
Dtime64.c248 assert(tm->tm_sec >= 0); in check_tm()
249 assert(tm->tm_sec <= 61); in check_tm()
251 assert(tm->tm_min >= 0); in check_tm()
252 assert(tm->tm_min <= 59); in check_tm()
254 assert(tm->tm_hour >= 0); in check_tm()
255 assert(tm->tm_hour <= 23); in check_tm()
257 assert(tm->tm_mday >= 1); in check_tm()
258 assert(tm->tm_mday <= days_in_month[IS_LEAP(tm->tm_year)][tm->tm_mon]); in check_tm()
260 assert(tm->tm_mon >= 0); in check_tm()
261 assert(tm->tm_mon <= 11); in check_tm()
[all …]
Dfts.c712 assert(cp && "cp should be non-null if FTS_NOCHDIR is set"); in fts_build()
/bionic/libc/include/
Dassert.h45 #undef assert
52 # define assert(e) __assert_no_op macro
55 # define assert(e) ((e) ? __assert_no_op : __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, #e)) macro
63 # define assert(e) ((e) ? __assert_no_op : __assert(__FILE__, __LINE__, #e)) macro
/bionic/tests/libs/
Dcfi_test_lib.cpp69 assert(&__cfi_slowpath); in check_cfi_self()
73 assert(g_last_type_id == 13); in check_cfi_self()
76 assert(g_last_type_id == 13); in check_cfi_self()
/bionic/libc/dns/net/
Dgetaddrinfo.c351 assert(p != NULL); in str2number()
601 assert(res != NULL); in android_getaddrinfofornetcontext()
602 assert(netcontext != NULL); in android_getaddrinfofornetcontext()
813 assert(pai != NULL); in explore_fqdn()
816 assert(res != NULL); in explore_fqdn()
871 assert(pai != NULL); in explore_null()
873 assert(res != NULL); in explore_null()
937 assert(pai != NULL); in explore_numeric()
940 assert(res != NULL); in explore_numeric()
1027 assert(pai != NULL); in explore_numeric_scope()
[all …]
Dnsdispatch.c112 assert(database != NULL); in nsdispatch()
113 assert(method != NULL); in nsdispatch()
114 assert(defaults != NULL); in nsdispatch()
Dgetnameinfo.c369 assert(sa != NULL); in ip6_parsenumeric()
370 assert(addr != NULL); in ip6_parsenumeric()
371 assert(host != NULL); in ip6_parsenumeric()
410 assert(sa6 != NULL); in ip6_sa2str()
411 assert(buf != NULL); in ip6_sa2str()
/bionic/tests/headers/posix/
Dassert_h.c33 #if !defined(assert)
39 #if !defined(assert)
/bionic/libm/upstream-freebsd/lib/msun/src/
Dmath_private.h420 assert(__ia == 0 || fabsl(__ia) >= fabsl(__ib)); \
427 assert((long double)__ia + __ib == (long double)(a) + (b)); \
431 assert(__vw == (a) && __r == (b)); \
/bionic/libc/malloc_debug/
DConfig.cpp145 assert(!value.empty()); in ParseValue()
/bionic/libc/tools/
Dposix-2013.txt39 assert
/bionic/libc/dns/nameser/
Dns_print.c1223 assert(len <= *buflen); in addlen()
/bionic/libc/
DAndroid.bp1007 "bionic/assert.cpp",