Changeset 7ab7075f in mainline for uspace/lib/c/test/stdio.c


Ignore:
Timestamp:
2018-08-06T18:40:12Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1dcba91
Parents:
7afd12e5
Message:

Add support for 'x' fopen file mode modifier from C11.

File:
1 edited

Legend:

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

    r7afd12e5 r7ab7075f  
    6262        PCUT_ASSERT_TRUE(rc != 0);
    6363
    64         f = fopen(buf, "w");
     64        f = fopen(buf, "wx");
    6565        PCUT_ASSERT_NOT_NULL(f);
    6666        fclose(f);
     
    9292        PCUT_ASSERT_NOT_NULL(p);
    9393
    94         f = fopen(buf1, "w");
     94        f = fopen(buf1, "wx");
    9595        PCUT_ASSERT_NOT_NULL(f);
    9696        fclose(f);
     
    142142        PCUT_ASSERT_NOT_NULL(p);
    143143
    144         f = fopen(p, "w+");
     144        f = fopen(p, "w+x");
    145145        PCUT_ASSERT_NOT_NULL(f);
    146146        (void) remove(p);
     
    174174        PCUT_ASSERT_NOT_NULL(p);
    175175
    176         f = fopen(p, "w+");
     176        f = fopen(p, "w+x");
    177177        PCUT_ASSERT_NOT_NULL(f);
    178178        (void) remove(p);
Note: See TracChangeset for help on using the changeset viewer.