Ignore:
Timestamp:
Jul 11, 2017, 3:11:42 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
f2b12406
Parents:
67f2170
Message:

Cleaned long tests to be more consistent and offer more debug information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt.c

    r67f2170 r0322865  
    1212static volatile int counter = 0;
    1313
    14 thread Worker {
     14thread worker_t {
    1515        int value;
    1616};
    1717
    18 void ?{}( Worker * this, int value ) {
     18void ?{}( worker_t * this, int value ) {
    1919        this->value = value;
    2020}
    2121
    22 void main(Worker * this) {
     22void main(worker_t * this) {
    2323        while(counter < 1000) {
    2424                if( (counter % 7) == this->value ) {
     
    3232        processor p;
    3333        {
    34                 Worker w0 = 0;
    35                 Worker w1 = 1;
    36                 Worker w2 = 2;
    37                 Worker w3 = 3;
    38                 Worker w4 = 4;
    39                 Worker w5 = 5;
    40                 Worker w6 = 6;
     34                worker_t w0 = 0;
     35                worker_t w1 = 1;
     36                worker_t w2 = 2;
     37                worker_t w3 = 3;
     38                worker_t w4 = 4;
     39                worker_t w5 = 5;
     40                worker_t w6 = 6;
    4141        }
    4242}
Note: See TracChangeset for help on using the changeset viewer.