Changeset da680b4b in mainline for uspace/lib/c/test/str.c


Ignore:
Timestamp:
2018-07-06T17:18:28Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6419c6e
Parents:
9ba040a
Message:

Don't automatically mount writable filesystems on ATA hard drives. Better be safe than sorry. (But no way to override yet.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/test/str.c

    r9ba040a rda680b4b  
    8888}
    8989
     90PCUT_TEST(str_str_found)
     91{
     92        const char *hs = "abracadabra";
     93        const char *n = "raca";
     94        char *p;
     95
     96        p = str_str(hs, n);
     97        PCUT_ASSERT_TRUE((const char *)p == hs + 2);
     98}
     99
     100PCUT_TEST(str_str_not_found)
     101{
     102        const char *hs = "abracadabra";
     103        const char *n = "racab";
     104        char *p;
     105
     106        p = str_str(hs, n);
     107        PCUT_ASSERT_TRUE(p == NULL);
     108}
     109
     110PCUT_TEST(str_str_empty_n)
     111{
     112        const char *hs = "abracadabra";
     113        const char *n = "";
     114        char *p;
     115
     116        p = str_str(hs, n);
     117        PCUT_ASSERT_TRUE((const char *)p == hs);
     118}
    90119
    91120PCUT_EXPORT(str);
Note: See TracChangeset for help on using the changeset viewer.