Changeset 58e7b26 in mainline for uspace/lib/c/test
- Timestamp:
- 2018-08-31T19:10:47Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be34d6f
- Parents:
- bbe5e34
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-04-20 18:54:48)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-31 19:10:47)
- Location:
- uspace/lib/c/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/stdio/scanf.c
rbbe5e34 r58e7b26 42 42 #include <stdlib.h> 43 43 44 #pragma GCC diagnostic ignored "-Wformat-zero-length" 45 44 46 PCUT_INIT; 45 47 … … 604 606 605 607 cp = NULL; 606 rc = sscanf("abc", "% m3c", &cp);608 rc = sscanf("abc", "%3mc", &cp); 607 609 PCUT_ASSERT_INT_EQUALS(1, rc); 608 610 PCUT_ASSERT_NOT_NULL(cp); -
uspace/lib/c/test/string.c
rbbe5e34 r58e7b26 33 33 #include <pcut/pcut.h> 34 34 35 #pragma GCC diagnostic ignored "-Wstringop-truncation" 36 #pragma GCC diagnostic ignored "-Wstringop-overflow" 37 35 38 PCUT_INIT; 36 39 … … 544 547 PCUT_TEST(strpbrk_empty_string) 545 548 { 546 c har *p;549 const char *p; 547 550 548 551 p = strpbrk("", "abc"); … … 553 556 PCUT_TEST(strpbrk_empty_set) 554 557 { 555 c har *p;558 const char *p; 556 559 557 560 p = strpbrk("abc", "");
Note:
See TracChangeset
for help on using the changeset viewer.