Home
last modified time | relevance | path

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

12345678910>>...16

/glibc-2.36/sysdeps/aarch64/
Dtst-auditmod27.c61 assert (regs->lr_vreg[0].s == FUNC_FLOAT_ARG0); in la_aarch64_gnu_pltenter()
62 assert (regs->lr_vreg[1].s == FUNC_FLOAT_ARG1); in la_aarch64_gnu_pltenter()
63 assert (regs->lr_vreg[2].s == FUNC_FLOAT_ARG2); in la_aarch64_gnu_pltenter()
64 assert (regs->lr_vreg[3].s == FUNC_FLOAT_ARG3); in la_aarch64_gnu_pltenter()
65 assert (regs->lr_vreg[4].s == FUNC_FLOAT_ARG4); in la_aarch64_gnu_pltenter()
66 assert (regs->lr_vreg[5].s == FUNC_FLOAT_ARG5); in la_aarch64_gnu_pltenter()
67 assert (regs->lr_vreg[6].s == FUNC_FLOAT_ARG6); in la_aarch64_gnu_pltenter()
68 assert (regs->lr_vreg[7].s == FUNC_FLOAT_ARG7); in la_aarch64_gnu_pltenter()
72 assert (regs->lr_vreg[0].d == FUNC_DOUBLE_ARG0); in la_aarch64_gnu_pltenter()
73 assert (regs->lr_vreg[1].d == FUNC_DOUBLE_ARG1); in la_aarch64_gnu_pltenter()
[all …]
Dtst-auditmod26.c61 assert (regs->lr_xreg[0] == ARG1); in la_aarch64_gnu_pltenter()
62 assert (regs->lr_xreg[1] == ARG2); in la_aarch64_gnu_pltenter()
63 assert (regs->lr_xreg[2] == ARG3); in la_aarch64_gnu_pltenter()
68 assert (regs->lr_vpcs == 0); in la_aarch64_gnu_pltenter()
89 assert (inregs->lr_xreg[0] == ARG1); in la_aarch64_gnu_pltexit()
90 assert (inregs->lr_xreg[1] == ARG2); in la_aarch64_gnu_pltexit()
91 assert (inregs->lr_xreg[2] == ARG3); in la_aarch64_gnu_pltexit()
96 assert (inregs->lr_vpcs == 0); in la_aarch64_gnu_pltexit()
97 assert (outregs->lrv_vpcs == 0); in la_aarch64_gnu_pltexit()
/glibc-2.36/wcsmbs/
Dtst-mbrtowc.c39 assert (mbrtowc (&wc, "\xE2", 1, &s) == (size_t) -2); /* 1st byte processed */ in utf8_test_1()
40 assert (mbrtowc (&wc, "\x89", 1, &s) == (size_t) -2); /* 2nd byte processed */ in utf8_test_1()
41 assert (wc == 42); /* no value has not been stored into &wc yet */ in utf8_test_1()
42 assert (mbrtowc (&wc, "\xA0", 1, &s) == 1); /* 3nd byte processed */ in utf8_test_1()
43 assert (wc == 0x2260); /* E2 89 A0 = U+2260 (not equal) decoded correctly */ in utf8_test_1()
44 assert (mbrtowc (&wc, "", 1, &s) == 0); /* test final byte processing */ in utf8_test_1()
45 assert (wc == 0); /* test final byte decoding */ in utf8_test_1()
52 assert (mbrtowc (&wc, str, 1, &s) == -2); in utf8_test_1()
53 assert (mbrtowc (&wc, str + 1, 2, &s) == 2); in utf8_test_1()
54 assert (wc == 0x800); in utf8_test_1()
[all …]
/glibc-2.36/stdio-common/
Dtst-ungetc.c7 #undef assert
8 #define assert(x) \ macro
33 assert (fp != NULL) in main()
39 assert (fp != NULL); in main()
40 assert (ungetc ('z', fp) == 'z'); in main()
41 assert (getc (fp) == 'z'); in main()
42 assert (getc (fp) == 'b'); in main()
43 assert (getc (fp) == 'l'); in main()
44 assert (ungetc ('m', fp) == 'm'); in main()
45 assert (getc (fp) == 'm'); in main()
[all …]
Dtst-fdopen.c8 #undef assert
9 #define assert(x) \ macro
35 assert (fp != NULL) in main()
41 assert (fd != -1); in main()
42 assert (lseek (fd, 5, SEEK_SET) == 5); in main()
47 assert (fp != NULL); in main()
48 assert (getc (fp) == 'r'); in main()
49 assert (getc (fp) == ' '); in main()
/glibc-2.36/assert/
DMakefile21 subdir := assert
25 headers := assert.h
27 routines := assert assert-perr __assert
28 tests := test-assert test-assert-perr tst-assert-c++ tst-assert-g++
31 CFLAGS-tst-assert-c++.o = -std=c++11
32 LDLIBS-tst-assert-c++ = -lstdc++
33 CFLAGS-tst-assert-g++.o = -std=gnu++11
34 LDLIBS-tst-assert-g++ = -lstdc++
36 tests-unsupported += tst-assert-c++ tst-assert-g++
Dassert.h25 # undef assert
50 # define assert(expr) (__ASSERT_VOID_CAST (0)) macro
89 # define assert(expr) \ macro
94 # define assert(expr) \
104 # define assert(expr) \
/glibc-2.36/io/
Dtest-stat.c32 assert (sizeof (struct stat) in do_test()
34 assert (offsetof (struct stat, st_dev) in do_test()
36 assert (offsetof (struct stat, st_ino) in do_test()
38 assert (offsetof (struct stat, st_mode) in do_test()
40 assert (offsetof (struct stat, st_nlink) in do_test()
42 assert (offsetof (struct stat, st_uid) in do_test()
44 assert (offsetof (struct stat, st_gid) in do_test()
46 assert (offsetof (struct stat, st_rdev) in do_test()
48 assert (offsetof (struct stat, st_size) in do_test()
50 assert (offsetof (struct stat, st_atime) in do_test()
[all …]
/glibc-2.36/htl/tests/
Dtest-11.c42 assert (err == 0); in test1()
44 assert (a == b); in test1()
48 assert (a == b); in test1()
51 assert (err == 0); in test1()
78 assert (pshared == PTHREAD_PROCESS_PRIVATE); in main()
127 assert (err == 0); in main()
131 assert (err == EBUSY); in main()
135 assert (err == 0); in main()
139 assert (err == 0); in main()
143 assert (err == EBUSY); in main()
[all …]
Dtest-17.c38 assert (err == 0); in work()
40 assert (err == 0); in work()
45 assert (value1 == NULL); in work()
46 assert (value2 == NULL); in work()
48 assert (err == 0); in work()
50 assert (err == 0); in work()
55 assert (value1 == (void *) (0x100 + iter)); in work()
56 assert (value2 == (void *) (0x200 + iter)); in work()
59 assert (err == 0); in work()
61 assert (err == 0); in work()
Dtest-7.c41 assert (pthread_getspecific (key[i]) == NULL); in thr()
61 assert ((pthread_t) val == pthread_self ()); in main()
64 assert (pthread_getspecific ((pthread_key_t) 0) == NULL); in main()
65 assert (pthread_setspecific ((pthread_key_t) 0, (void *) 0x1) == EINVAL); in main()
85 assert (ret == 0); in main()
Dtest-12.c33 assert (i == 0); in main()
36 assert (err == EINVAL); in main()
39 assert (err == 0); in main()
42 assert (i == 4); in main()
/glibc-2.36/nscd/
Dmem.c76 assert ((start & BLOCK_ALIGN_M1) == 0); in markrange()
119 assert (db->head->first_free % BLOCK_ALIGN == 0); in gc()
168 assert (cnt < db->head->nentries); in gc()
191 assert (cnt == db->head->nentries); in gc()
244 assert (off_free <= db->head->first_free); in gc()
263 assert ((db->head->gc_cycle & 1) == 1); in gc()
304 assert (off_alloc <= db->head->first_free); in gc()
328 assert (off_allocend <= db->head->first_free); in gc()
370 assert (next_data < &he_data[db->head->nentries]); in gc()
371 assert ((*next_data)->packet == off_alloc); in gc()
[all …]
/glibc-2.36/dlfcn/
Dbug-dl-leaf-lib.c41 assert (val == 2); in check_val_init()
47 assert (val == 4); in check_val_fini()
59 assert (hdl); in lib_main()
60 assert (called == 1); in lib_main()
66 assert (ret == 0); in lib_main()
67 assert (called == 2); in lib_main()
/glibc-2.36/elf/
Dget-dynamic-info.h113 assert (info[DT_PLTREL]->d_un.d_val == DT_REL); in elf_get_dynamic_info()
115 assert (info[DT_PLTREL]->d_un.d_val == DT_RELA); in elf_get_dynamic_info()
117 assert (info[DT_PLTREL]->d_un.d_val == DT_REL in elf_get_dynamic_info()
123 assert (info[DT_RELAENT]->d_un.d_val == sizeof (ElfW(Rela))); in elf_get_dynamic_info()
127 assert (info[DT_RELENT]->d_un.d_val == sizeof (ElfW(Rel))); in elf_get_dynamic_info()
130 assert (info[DT_RELRENT]->d_un.d_val == sizeof (ElfW(Relr))); in elf_get_dynamic_info()
133 assert (info[DT_RUNPATH] == NULL); in elf_get_dynamic_info()
134 assert (info[DT_RPATH] == NULL); in elf_get_dynamic_info()
139 assert (info[VERSYMIDX (DT_FLAGS_1)] == NULL in elf_get_dynamic_info()
142 assert (info[DT_FLAGS] == NULL in elf_get_dynamic_info()
Ddl-tls.c116 assert (LEGACY_TLS >= 0); in _dl_tls_static_surplus_init()
156 assert (result <= GL(dl_tls_max_dtv_idx) + 1); in _dl_assign_tls_modid()
174 assert (result == GL(dl_tls_max_dtv_idx) + 1); in _dl_assign_tls_modid()
227 assert (GL(dl_tls_dtv_slotinfo_list) != NULL); in _dl_determine_tlsoffset()
230 assert (GL(dl_tls_dtv_slotinfo_list)->next == NULL); in _dl_determine_tlsoffset()
268 assert (cnt < GL(dl_tls_dtv_slotinfo_list)->len); in _dl_determine_tlsoffset()
316 assert (cnt < GL(dl_tls_dtv_slotinfo_list)->len); in _dl_determine_tlsoffset()
575 assert (listp->slotinfo[cnt].gen <= GL(dl_tls_generation)); in _dl_allocate_tls_init()
585 assert (map->l_tls_modid == total + cnt); in _dl_allocate_tls_init()
586 assert (map->l_tls_blocksize >= map->l_tls_initimage_size); in _dl_allocate_tls_init()
[all …]
/glibc-2.36/sysdeps/htl/
Dpt-rwlock-timedrdlock.c41 assert (rwlock->__readerqueue == 0); in __pthread_rwlock_timedrdlock_internal()
42 assert (rwlock->__writerqueue == 0); in __pthread_rwlock_timedrdlock_internal()
43 assert (rwlock->__readers == 0); in __pthread_rwlock_timedrdlock_internal()
54 assert (rwlock->__readerqueue == 0); in __pthread_rwlock_timedrdlock_internal()
63 assert (rwlock->__readers == 0); in __pthread_rwlock_timedrdlock_internal()
107 assert (err == ETIMEDOUT); in __pthread_rwlock_timedrdlock_internal()
114 assert (rwlock->__readers > 0); in __pthread_rwlock_timedrdlock_internal()
Dpt-rwlock-timedwrlock.c41 assert (rwlock->__readerqueue == 0); in __pthread_rwlock_timedwrlock_internal()
42 assert (rwlock->__writerqueue == 0); in __pthread_rwlock_timedwrlock_internal()
43 assert (rwlock->__readers == 0); in __pthread_rwlock_timedwrlock_internal()
93 assert (err == ETIMEDOUT); in __pthread_rwlock_timedwrlock_internal()
97 assert (rwlock->__readers == 0); in __pthread_rwlock_timedwrlock_internal()
Dpt-rwlock-tryrdlock.c32 assert (rwlock->__readerqueue == 0); in pthread_rwlock_tryrdlock()
33 assert (rwlock->__writerqueue == 0); in pthread_rwlock_tryrdlock()
34 assert (rwlock->__readers == 0); in pthread_rwlock_tryrdlock()
44 assert (rwlock->__readerqueue == 0); in pthread_rwlock_tryrdlock()
/glibc-2.36/math/
Dgen-auto-libm-tests.c631 assert (i == 0); in assert_exact()
719 assert (*ep == 0); in init_fp_formats()
1024 assert (mpfr_number_p (r)); in adjust_real()
1058 assert (mpfr_number_p (r)); in round_real()
1110 assert (rint_res == 0 || rint_res == 2 || rint_res == -2); in round_real()
1114 assert (rint_res != 0); in round_real()
1166 assert (num_extra_values > 0 in handle_input_arg()
1224 assert (num_values < ARRAY_SIZE (values)); in handle_input_arg()
1253 assert (num_values > 0 && num_values <= ARRAY_SIZE (values)); in handle_input_arg()
1293 assert (ep != NULL); in handle_input_flag()
[all …]
/glibc-2.36/malloc/
Dmalloc.c2088 assert (((char *) p) >= min_address); in do_check_chunk()
2089 assert (((char *) p + sz) <= ((char *) (av->top))); in do_check_chunk()
2095 assert ((unsigned long) (sz) >= MINSIZE); in do_check_chunk()
2097 assert (prev_inuse (p)); in do_check_chunk()
2105 assert (((char *) p) < min_address || ((char *) p) >= max_address); in do_check_chunk()
2108 assert (((prev_size (p) + sz) & (GLRO (dl_pagesize) - 1)) == 0); in do_check_chunk()
2110 assert (aligned_OK (chunk2mem (p))); in do_check_chunk()
2127 assert (!inuse (p)); in do_check_free_chunk()
2128 assert (!chunk_is_mmapped (p)); in do_check_free_chunk()
2133 assert ((sz & MALLOC_ALIGN_MASK) == 0); in do_check_free_chunk()
[all …]
/glibc-2.36/misc/
Dunwind-link.c79 assert (local.ptr__Unwind_Backtrace != NULL); in __libc_unwind_link_get()
80 assert (local.ptr__Unwind_ForcedUnwind != NULL); in __libc_unwind_link_get()
81 assert (local.ptr__Unwind_GetCFA != NULL); in __libc_unwind_link_get()
83 assert (local.ptr__Unwind_GetIP != NULL); in __libc_unwind_link_get()
85 assert (local.ptr__Unwind_Resume != NULL); in __libc_unwind_link_get()
86 assert (local.ptr_personality != NULL); in __libc_unwind_link_get()
/glibc-2.36/hurd/
Dhurdmalloc.c219 assert(i < NBUCKETS); in malloc()
244 assert (HEADER_CHECK (h) == CHECK_FREE); in malloc()
280 assert (HEADER_CHECK (h) == CHECK_BUSY); in free()
289 assert(0 <= i && i < NBUCKETS); in free()
293 assert(fl == &malloc_free_list[i]); in free()
330 assert (HEADER_CHECK (h) == CHECK_BUSY); in realloc()
338 assert(0 <= i && i < NBUCKETS); in realloc()
342 assert(fl == &malloc_free_list[i]); in realloc()
/glibc-2.36/nptl/
Dpthread_mutex_lock.c94 assert (mutex->__data.__owner == 0); in PTHREAD_MUTEX_LOCK()
130 assert (mutex->__data.__owner == 0); in PTHREAD_MUTEX_LOCK()
167 assert (mutex->__data.__owner == 0); in PTHREAD_MUTEX_LOCK()
172 assert (PTHREAD_MUTEX_TYPE (mutex) == PTHREAD_MUTEX_ERRORCHECK_NP); in PTHREAD_MUTEX_LOCK()
445 assert (e != EDEADLK in __pthread_mutex_lock_full()
450 assert (e != ESRCH || !robust); in __pthread_mutex_lock_full()
460 assert (robust || (oldval & FUTEX_OWNER_DIED) == 0); in __pthread_mutex_lock_full()
607 assert (mutex->__data.__owner == 0); in __pthread_mutex_lock_full()
650 assert ((mutex_kind & PTHREAD_MUTEX_PRIO_INHERIT_NP) != 0); in __pthread_mutex_cond_lock_adjust()
651 assert ((mutex_kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0); in __pthread_mutex_cond_lock_adjust()
[all …]
/glibc-2.36/stdlib/
Dstrtod_l.c379 assert (digcnt > 0); in str_to_mpn()
396 assert (*nsize < MPNSIZE); in str_to_mpn()
452 assert (*nsize < MPNSIZE); in str_to_mpn()
592 assert (decimal != L'\0'); in ____STRTOF_INTERNAL()
597 assert (decimal_len > 0); in ____STRTOF_INTERNAL()
874 assert (dig_no <= (uintmax_t) INTMAX_MAX); in ____STRTOF_INTERNAL()
904 assert (int_no <= (uintmax_t) (INTMAX_MAX in ____STRTOF_INTERNAL()
912 assert (lead_zero == 0 in ____STRTOF_INTERNAL()
924 assert (lead_zero in ____STRTOF_INTERNAL()
936 assert (int_no in ____STRTOF_INTERNAL()
[all …]

12345678910>>...16