Changeset b22b0a94 in mainline for uspace/app/tester/tester.h


Ignore:
Timestamp:
2019-08-07T05:39:54Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
b8341bc
Parents:
5cd2290
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-19 21:34:52)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:39:54)
Message:

task: Inoperative API for passing kernel task events to uspace

  • Based on user-provided callback function.
  • Includes slight refactoring of tester application code.

Conflicts:

uspace/lib/c/include/task.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/tester.h

    r5cd2290 rb22b0a94  
    7070        } while (0)
    7171
     72#define S(x) #x
     73#define S_(x) S(x)
     74#define S__LINE__ S_(__LINE__)
     75
     76#define TASSERT(expr) \
     77        do { \
     78                if (!(expr)) \
     79                        return "Failed " #expr " " __FILE__ ":" S__LINE__ ; \
     80        } while (0)
     81
     82
    7283typedef const char *(*test_entry_t)(void);
    7384
     
    112123extern const char *test_chardev1(void);
    113124extern const char *test_proc_dummy_task(void);
     125extern const char *test_proc_task_anywait(void);
    114126extern const char *test_proc_task_wait(void);
    115127
Note: See TracChangeset for help on using the changeset viewer.