Changeset 7c2820e


Ignore:
Timestamp:
Aug 7, 2023, 3:10:02 PM (9 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
57fd66d
Parents:
c34bb1f
Message:

added exception thrown at main to the cor_resumer test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/cor_resumer.cfa

    rc34bb1f r7c2820e  
    2323    resume( next );
    2424    try {
    25         while( ! poll( this ) ) { yield(); }
     25        poll();
    2626    } catch( unwind * e ) {
    2727        e->num++;
     
    3131        }
    3232        sout | e->num;
    33         if ( cnt == num_links ) return;
    3433        except{ &unwind_vt, e->num };
    3534        resumeAt( resumer( this ), except );
     
    4140        sout | "main start";
    4241    Node n{ num_links };
    43     resume( n );
     42    try {
     43        resume( n );
     44        poll();
     45    } catch( unwind * e ) {}
     46   
    4447        sout | "main end";
    4548}
Note: See TracChangeset for help on using the changeset viewer.