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


Ignore:
Timestamp:
2026-02-11T12:02:03Z (11 days 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/walk.c

    r857fba8 r59ed424e  
    3939PCUT_TEST_SUITE(walk);
    4040
    41 static errno_t test_walk_dir_enter(void *, const char *, const char *);
    42 static errno_t test_walk_dir_leave(void *, const char *, const char *);
    43 static errno_t test_walk_file(void *, const char *, const char *);
     41static errno_t test_walk_dir_enter(fmgt_walk_t *, const char *, const char *);
     42static errno_t test_walk_dir_leave(fmgt_walk_t *, const char *, const char *);
     43static errno_t test_walk_file(fmgt_walk_t *, const char *, const char *);
    4444
    4545static fmgt_walk_cb_t test_walk_cb = {
     
    207207}
    208208
    209 errno_t test_walk_dir_enter(void *arg, const char *fname, const char *dest)
    210 {
    211         test_resp_t *resp = (test_resp_t *)arg;
     209errno_t test_walk_dir_enter(fmgt_walk_t *walk, const char *fname,
     210    const char *dest)
     211{
     212        test_resp_t *resp = (test_resp_t *)walk->params->arg;
    212213        resp->dir_enter = true;
    213214        resp->dirname = str_dup(fname);
     
    216217}
    217218
    218 errno_t test_walk_dir_leave(void *arg, const char *fname, const char *dest)
    219 {
    220         test_resp_t *resp = (test_resp_t *)arg;
     219errno_t test_walk_dir_leave(fmgt_walk_t *walk, const char *fname,
     220    const char *dest)
     221{
     222        test_resp_t *resp = (test_resp_t *)walk->params->arg;
    221223        resp->dir_leave = true;
    222224        resp->dl_dest = (dest != NULL) ? str_dup(dest) : NULL;
     
    224226}
    225227
    226 errno_t test_walk_file(void *arg, const char *fname, const char *dest)
    227 {
    228         test_resp_t *resp = (test_resp_t *)arg;
     228errno_t test_walk_file(fmgt_walk_t *walk, const char *fname, const char *dest)
     229{
     230        test_resp_t *resp = (test_resp_t *)walk->params->arg;
    229231        resp->file_proc = true;
    230232        resp->fname = str_dup(fname);
Note: See TracChangeset for help on using the changeset viewer.