Changeset 897fd8f1 in mainline for kernel/test


Ignore:
Timestamp:
2017-12-19T18:18:15Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55b56f4
Parents:
7f11dc6
Message:

Use <errno.h> instead of special ESYNCH_xx error codes.

Location:
kernel/test/synch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/rcu1.c

    r7f11dc6 r897fd8f1  
    114114                        do {
    115115                                int ret = thread_join_timeout(thread[i], 5 * 1000 * 1000, 0);
    116                                 joined = (ret != ESYNCH_TIMEOUT);
     116                                joined = (ret != ETIMEOUT);
    117117                               
    118                                 if (ret == ESYNCH_OK_BLOCKED) {
     118                                if (ret == EOK) {
    119119                                        TPRINTF("%zu threads remain\n", thread_cnt - i - 1);
    120120                                }
  • kernel/test/synch/semaphore2.c

    r7f11dc6 r897fd8f1  
    7070        TPRINTF("cpu%u, tid %" PRIu64 " down+ (%d)\n", CPU->id, THREAD->tid, to);
    7171        rc = semaphore_down_timeout(&sem, to);
    72         if (SYNCH_FAILED(rc)) {
     72        if (rc != EOK) {
    7373                TPRINTF("cpu%u, tid %" PRIu64 " down!\n", CPU->id, THREAD->tid);
    7474                return;
Note: See TracChangeset for help on using the changeset viewer.