Searched refs:assert (Results 1 - 25 of 2892) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/libstdc++/include/c_std/
H A Dstd_cassert.h35 * This is the C++ version of the Standard C Library header @c assert.h,
49 #include <assert.h>
/freebsd-10.0-release/tools/regression/lib/libc/gen/
H A Dtest-fpclassify.c29 #include <assert.h>
38 assert(fpclassify((float)0) == FP_ZERO);
39 assert(fpclassify((float)-0.0) == FP_ZERO);
40 assert(fpclassify((float)1) == FP_NORMAL);
41 assert(fpclassify((float)1000) == FP_NORMAL);
43 assert(fpclassify(0x1.2p-150f) == FP_SUBNORMAL);
45 assert(fpclassify(HUGE_VALF) == FP_INFINITE);
46 assert(fpclassify((float)HUGE_VAL) == FP_INFINITE);
47 assert(fpclassify((float)HUGE_VALL) == FP_INFINITE);
48 assert(fpclassif
[all...]
H A Dtest-wordexp.c37 #include <assert.h>
74 assert(r == 0);
75 assert(we.we_wordc == 2);
76 assert(strcmp(we.we_wordv[0], "hello") == 0);
77 assert(strcmp(we.we_wordv[1], "world") == 0);
78 assert(we.we_wordv[2] == NULL);
85 assert(r == 0);
86 assert(we.we_wordc == 10000);
87 assert(we.we_wordv[10000] == NULL);
93 assert(
[all...]
/freebsd-10.0-release/contrib/libstdc++/include/c/
H A Dstd_cassert.h38 #include_next <assert.h>
/freebsd-10.0-release/tools/regression/lib/libc/string/
H A Dtest-wcscasecmp.c30 #include <assert.h>
45 assert(wcscasecmp(L"", L"") == 0);
46 assert(wcsncasecmp(L"", L"", 50) == 0);
47 assert(wcsncasecmp(L"", L"", 0) == 0);
50 assert(wcscasecmp(L"abc", L"abc") == 0);
51 assert(wcscasecmp(L"ABC", L"ABC") == 0);
52 assert(wcscasecmp(L"abc", L"ABC") == 0);
53 assert(wcscasecmp(L"ABC", L"abc") == 0);
56 assert(wcscasecmp(L"abc", L"xyz") < 0);
57 assert(wcscasecm
[all...]
/freebsd-10.0-release/tools/regression/lib/libc/stdio/
H A Dtest-scanfloat.c34 #include <assert.h>
58 assert(setlocale(LC_NUMERIC, ""));
64 assert(eq(FLT, f, 3.141592));
67 assert(eq(DBL, d, 3.141592653589793));
70 assert(eq(FLT, f, 1.234568e+06));
73 assert(eq(DBL, d, -1.234568e6));
76 assert(eq(LDBL, ld, 1.234568e-52L));
79 assert(eq(DBL, d, 0.1));
82 assert(eq(DBL, d, 0.2));
85 assert(e
[all...]
H A Dtest-getdelim.c31 #include <assert.h>
95 assert(getline(&line, &linecap, fp) == sizeof(apothegm) - 1);
96 assert(memcmp(line, apothegm, sizeof(apothegm)) == 0);
97 assert(linecap >= sizeof(apothegm));
99 assert(getline(&line, &linecap, fp) == 1);
100 assert(line[0] == '\0' && line[1] == '\0');
103 assert(getline(&line, &linecap, fp) == -1);
104 assert(line[0] == '\0');
107 assert(feof(fp));
108 assert(!ferro
[all...]
/freebsd-10.0-release/lib/libkse/test/
H A Dsem_d.c38 #include <assert.h>
69 assert(-1 == sem_init(&sem_b, 1, 0));
70 assert(EPERM == errno);
73 assert(0 == sem_init(&sem_b, 0, 0));
74 assert(0 == sem_getvalue(&sem_b, &val));
75 assert(0 == val);
77 assert(0 == sem_post(&sem_b));
78 assert(0 == sem_getvalue(&sem_b, &val));
79 assert(1 == val);
81 assert(
[all...]
/freebsd-10.0-release/tools/regression/lib/libc/locale/
H A Dtest-mbrtoc16.c36 #include <assert.h>
58 assert(mbrtoc16(&c16, "", 1, NULL) == 0);
59 assert(c16 == 0);
63 assert(mbrtoc16(&c16, "", 1, &s) == 0);
64 assert(c16 == 0);
67 assert(mbrtoc16(NULL, 0, 0, NULL) == 0);
68 assert(mbrtoc16(&c16, "A", 1, NULL) == 1);
69 assert(c16 == L'A');
73 assert(mbrtoc16(&c16, "A", 1, &s) == 1);
74 assert(c1
[all...]
H A Dtest-mbtowc.c38 #include <assert.h>
58 assert(MB_CUR_MAX == 1);
61 assert(mbtowc(NULL, NULL, 0) == 0);
66 assert(mbtowc(&wc, buf, 1) == 0);
67 assert(wc == 0);
71 assert(mbtowc(&wc, buf, 1) == 1);
72 assert(wc == L'A');
77 assert(mbtowc(&wc, buf, 0) == -1);
78 assert(wc == L'z');
79 assert(mbtow
[all...]
H A Dtest-wctomb.c38 #include <assert.h>
58 assert(MB_CUR_MAX == 1);
61 assert(wctomb(NULL, L'\0') == 0);
66 assert(len == 1);
67 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
72 assert(len == 1);
73 assert((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc);
76 assert(wctomb(buf, UCHAR_MAX + 1) == -1);
77 assert(wctomb(NULL, 0) == 0);
83 assert(strcm
[all...]
H A Dtest-c16rtomb.c36 #include <assert.h>
60 assert(c16rtomb(NULL, L'\0', NULL) == 1);
61 assert(c16rtomb(NULL, 0xdc00, NULL) == 1);
66 assert(c16rtomb(buf, 0, &s) == 1);
67 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
70 assert(c16rtomb(NULL, L'\0', NULL) == 1);
71 assert(c16rtomb(NULL, L'A', NULL) == 1);
76 assert(c16rtomb(buf, L'A', &s) == 1);
77 assert((unsigned char)buf[0] == 'A' && (unsigned char)buf[1] == 0xcc);
82 assert(c16rtom
[all...]
H A Dtest-mblen.c38 #include <assert.h>
57 assert(MB_CUR_MAX == 1);
60 assert(mblen(NULL, 0) == 0);
65 assert(mblen(buf, 1) == 0);
69 assert(mblen(buf, 1) == 1);
73 assert(mblen(buf, 0) == -1);
74 assert(mblen(NULL, 0) == 0);
80 assert(strcmp(setlocale(LC_CTYPE, "ja_JP.eucJP"), "ja_JP.eucJP") == 0);
81 assert(MB_CUR_MAX > 1);
84 assert(mble
[all...]
H A Dtest-mbrlen.c38 #include <assert.h>
60 assert(MB_CUR_MAX == 1);
65 assert(mbrlen(buf, 1, NULL) == 0);
69 assert(mbrlen(buf, 1, &s) == 0);
72 assert(mbrlen(NULL, 0, NULL) == 0);
74 assert(mbrlen(buf, 1, NULL) == 1);
78 assert(mbrlen(buf, 1, &s) == 1);
82 assert(mbrlen(buf, 0, &s) == (size_t)-2);
88 assert(strcmp(setlocale(LC_CTYPE, "ja_JP.eucJP"), "ja_JP.eucJP") == 0);
89 assert(MB_CUR_MA
[all...]
H A Dtest-mbrtowc.c38 #include <assert.h>
61 assert(MB_CUR_MAX == 1);
66 assert(mbrtowc(&wc, buf, 1, NULL) == 0);
67 assert(wc == 0);
71 assert(mbrtowc(&wc, buf, 1, &s) == 0);
72 assert(wc == 0);
75 assert(mbrtowc(NULL, 0, 0, NULL) == 0);
77 assert(mbrtowc(&wc, buf, 1, NULL) == 1);
78 assert(wc == L'A');
82 assert(mbrtow
[all...]
H A Dtest-mbstowcs.c38 #include <assert.h>
63 assert(mbstowcs(dstbuf, srcbuf, sizeof(dstbuf) / sizeof(*dstbuf)) == 5);
64 assert(wcscmp(dstbuf, L"hello") == 0);
65 assert(dstbuf[6] == 0xcccc);
71 assert(mbstowcs(dstbuf, srcbuf, 4) == 4);
72 assert(wmemcmp(dstbuf, L"hell", 4) == 0);
73 assert(dstbuf[5] == 0xcccc);
78 assert(mbstowcs(NULL, srcbuf, 0) == 5);
84 assert(mbstowcs(dstbuf, srcbuf, 1) == 0);
85 assert(dstbu
[all...]
H A Dtest-wcrtomb.c38 #include <assert.h>
60 assert(MB_CUR_MAX == 1);
66 assert(wcrtomb(NULL, L'\0', NULL) == 1);
67 assert(wcrtomb(NULL, UCHAR_MAX + 1, NULL) == 1);
73 assert(len == 1);
74 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
77 assert(wcrtomb(NULL, L'\0', NULL) == 1);
78 assert(wcrtomb(NULL, L'A', NULL) == 1);
84 assert(len == 1);
85 assert((unsigne
[all...]
/freebsd-10.0-release/tools/regression/lib/msun/
H A Dtest-fenv.c36 #include <assert.h>
136 assert(memcmp(&env, FE_DFL_ENV, sizeof(env)) == 0);
138 assert(fetestexcept(FE_ALL_EXCEPT) == 0);
150 assert(fetestexcept(std_except_sets[i]) == 0);
156 assert(fetestexcept(excepts) == excepts);
157 assert(feclearexcept(FE_ALL_EXCEPT) == 0);
158 assert(fetestexcept(FE_ALL_EXCEPT) == 0);
161 assert(fetestexcept(excepts) == excepts);
164 assert((fetestexcept(ALL_STD_EXCEPT) | FE_INEXACT) ==
167 assert(fetestexcep
[all...]
H A Dtest-ilogb.c29 #include <assert.h>
46 assert(ilogb(0) == FP_ILOGB0);
47 assert(ilogb(NAN) == FP_ILOGBNAN);
48 assert(ilogb(INFINITY) == INT_MAX);
52 assert(*end == '\0');
54 assert(i == e);
58 assert(ilogbf(0) == FP_ILOGB0);
59 assert(ilogbf(NAN) == FP_ILOGBNAN);
60 assert(ilogbf(INFINITY) == INT_MAX);
64 assert(*en
[all...]
H A Dtest-nan.c35 #include <assert.h>
68 assert(isnan(af[0]));
70 assert(end == nan_str + strlen(nan_str));
71 assert(sscanf(nan_str, "%e", &af[2]) == 1);
72 assert(memcmp(&af[0], &af[1], sizeof(float)) == 0);
73 assert(memcmp(&af[1], &af[2], sizeof(float)) == 0);
77 assert(memcmp(&af[2], &af[3], sizeof(float)) == 0);
81 assert(isnan(ad[0]));
83 assert(end == nan_str + strlen(nan_str));
84 assert(sscan
[all...]
/freebsd-10.0-release/contrib/libarchive/cpio/test/
H A Dtest_cmdline.c38 assert(f != NULL);
42 assert(0 != systemf("%s -i -Q <empty >1.out 2>1.err", testprog));
46 assert(0 != systemf("%s -if <empty >2.out 2>2.err", testprog));
50 assert(0 != systemf("%s -i -f <empty >3.out 2>3.err", testprog));
54 assert(0 != systemf("%s -i --format <empty >4.out 2>4.err", testprog));
58 assert(0 != systemf("%s -i --badop <empty >5.out 2>5.err", testprog));
62 assert(0 != systemf("%s -i --badopt <empty >6.out 2>6.err", testprog));
66 assert(0 != systemf("%s -i --n <empty >7.out 2>7.err", testprog));
70 assert(0 != systemf("%s --create=arg <empty >8.out 2>8.err", testprog));
74 assert(
[all...]
H A Dtest_owner_parse.c68 assert(NULL == owner_parse(ROOT, &uid, &gid));
69 assert(int_in_list(uid, root_uids,
74 assert(NULL == owner_parse(ROOT ":", &uid, &gid));
75 assert(int_in_list(uid, root_uids,
77 assert(int_in_list(gid, root_gids,
80 assert(NULL == owner_parse(ROOT ".", &uid, &gid));
81 assert(int_in_list(uid, root_uids,
83 assert(int_in_list(gid, root_gids,
86 assert(NULL == owner_parse("111", &uid, &gid));
90 assert(NUL
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/
H A DAMDILDeviceInfo.cpp35 assert(!is64bit && "This device does not support 64bit pointers!");
36 assert(!is64on32bit && "This device does not support 64bit"
42 assert(!is64bit && "This device does not support 64bit pointers!");
43 assert(!is64on32bit && "This device does not support 64bit"
49 assert(!is64bit && "This device does not support 64bit pointers!");
50 assert(!is64on32bit && "This device does not support 64bit"
56 assert(!is64bit && "This device does not support 64bit pointers!");
57 assert(!is64on32bit && "This device does not support 64bit"
63 assert(!is64bit && "This device does not support 64bit pointers!");
64 assert(!is64on32bi
[all...]
/freebsd-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c65 assert(fd > 0);
68 assert(fstat(fd, &st) == 0);
147 assert((a = archive_write_disk_new()) != NULL);
150 assert((ae = archive_entry_new()) != NULL);
153 assert(0 == archive_write_header(a, ae));
154 assert(0 == archive_write_finish_entry(a));
159 assert((ae = archive_entry_new()) != NULL);
162 assert(0 == archive_write_header(a, ae));
164 assert(0 == archive_write_finish_entry(a));
166 assert(
[all...]
H A Dtest_write_disk_secure.c48 assert((a = archive_write_disk_new()) != NULL);
51 assert((ae = archive_entry_new()) != NULL);
54 assert(0 == archive_write_header(a, ae));
56 assert(0 == archive_write_finish_entry(a));
59 assert((ae = archive_entry_new()) != NULL);
64 assert(0 == archive_write_header(a, ae));
65 assert(0 == archive_write_finish_entry(a));
71 assert(archive_entry_clear(ae) != NULL);
74 assert(0 == archive_write_header(a, ae));
75 assert(
[all...]

Completed in 240 milliseconds

1234567891011>>