Changeset 2044 for trunk/src/libctests/glibc/string/tester.c
- Timestamp:
- Jun 17, 2005, 6:32:39 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libctests/glibc/string/tester.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2043 r2044 267 267 test_stpncpy (void) 268 268 { 269 #ifdef HAVE_STPNCPY 269 270 it = "stpncpy"; 270 271 memset (one, 'x', sizeof (one)); … … 277 278 check (stpncpy (one, "abcd", 6) == one + 4, 7); 278 279 check (one[4] == '\0' && one[5] == '\0' && one[6] == 'x', 8); 280 #endif 279 281 } 280 282 … … 466 468 test_strchrnul (void) 467 469 { 470 #ifdef HAVE_STRCHRNUL 468 471 const char *os; 469 472 it = "strchrnul"; … … 495 498 } 496 499 } 500 #endif 497 501 } 498 502 … … 500 504 test_rawmemchr (void) 501 505 { 506 #ifdef HAVE_RAWMEMCHR 502 507 it = "rawmemchr"; 503 508 (void) strcpy (one, "abcd"); … … 522 527 } 523 528 } 529 #endif 524 530 } 525 531 … … 573 579 test_memrchr (void) 574 580 { 581 #ifdef HAVE_MEMRCHR 575 582 size_t l; 576 583 it = "memrchr"; … … 614 621 } 615 622 } 623 #endif 616 624 } 617 625 … … 825 833 test_strsep (void) 826 834 { 835 #ifdef HAVE_STRSEP 827 836 char *ptr; 828 837 it = "strsep"; … … 953 962 check(ptr == one , 87); 954 963 check(cp == NULL, 88); 964 #endif 955 965 } 956 966 … … 1052 1062 test_mempcpy (void) 1053 1063 { 1064 #ifdef HAVE_MEMPCPY 1054 1065 int i; 1055 1066 it = "mempcpy"; … … 1084 1095 equal (two, "hi there", 12 + (i * 6)); 1085 1096 } 1097 #endif 1086 1098 } 1087 1099 … … 1263 1275 } 1264 1276 1277 1265 1278 static void 1266 1279 test_strndup (void) 1267 1280 { 1281 #ifdef HAVE_STRNDUP 1268 1282 char *p, *q; 1269 1283 it = "strndup"; … … 1285 1299 equal(p, "abc", 6); 1286 1300 free (p); 1301 #endif 1287 1302 } 1288 1303 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.