Changeset 59ed424e in mainline for uspace/lib/fmgt/test/fsops.c


Ignore:
Timestamp:
2026-02-11T12:02:03Z (31 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
f9c30b9a
Parents:
857fba8
git-author:
Jiri Svoboda <jiri@…> (2026-02-10 20:01:03)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-11 12:02:03)
Message:

Do not print error when user requests abort because file exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/test/fsops.c

    r857fba8 r59ed424e  
    8686        int fd;
    8787        int rv;
    88         bool skip;
    89         errno_t rc;
    90 
    91         /* Create name for temporary file */
    92         p = tmpnam(buf);
    93         PCUT_ASSERT_NOT_NULL(p);
    94 
    95         rc = fmgt_create(&fmgt);
    96         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    97 
    98         rc = fmgt_create_file(fmgt, p, &fd, &skip);
    99         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    100         PCUT_ASSERT_FALSE(skip);
     88        fmgt_exists_action_t exaction;
     89        errno_t rc;
     90
     91        /* Create name for temporary file */
     92        p = tmpnam(buf);
     93        PCUT_ASSERT_NOT_NULL(p);
     94
     95        rc = fmgt_create(&fmgt);
     96        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     97
     98        rc = fmgt_create_file(fmgt, p, &fd, &exaction);
     99        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    101100
    102101        fmgt_destroy(fmgt);
Note: See TracChangeset for help on using the changeset viewer.