Changeset 70b6de1 in mainline for kernel/test/synch/semaphore2.c


Ignore:
Timestamp:
2006-12-11T19:33:19Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e54fb21
Parents:
f272cb8
Message:

integrate rest of the tests

File:
1 moved

Legend:

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

    rf272cb8 r70b6de1  
    4242static semaphore_t sem;
    4343
    44 SPINLOCK_INITIALIZE(lock);
     44static SPINLOCK_INITIALIZE(lock);
    4545
    4646static waitq_t can_start;
    4747
    48 uint32_t seed = 0xdeadbeef;
     48static uint32_t seed = 0xdeadbeef;
    4949
    5050static uint32_t random(uint32_t max);
     
    5353static void failed(void);
    5454
    55 uint32_t random(uint32_t max)
     55static uint32_t random(uint32_t max)
    5656{
    5757        uint32_t rc;
     
    6565
    6666
    67 void consumer(void *arg)
     67static void consumer(void *arg)
    6868{
    6969        int rc, to;
     
    8888}
    8989
    90 void failed(void)
     90static void failed(void)
    9191{
    9292        printf("Test failed prematurely.\n");
     
    9494}
    9595
    96 void test(void)
     96void test_semaphore2(void)
    9797{
    9898        uint32_t i, k;
Note: See TracChangeset for help on using the changeset viewer.