Changeset 7e8c071


Ignore:
Timestamp:
Feb 14, 2026, 11:06:29 PM (37 hours ago)
Author:
Matthew Au-Yeung <mw2auyeu@…>
Branches:
stuck-waitfor-destruct
Parents:
a56d544
Message:

fixup tests more

Location:
tests
Files:
2 added
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    ra56d544 r7e8c071  
    119119.PHONY : concurrency list .validate .test_makeflags
    120120.INTERMEDIATE : .validate .validate.cfa .test_makeflags
    121 EXTRA_PROGRAMS = array-collections/boxed avl_test linkonce concurrency/waitfor/autogen_destructor linking/mangling/anon .dummy_hack # build but do not install
     121EXTRA_PROGRAMS = array-collections/boxed \
     122        avl_test \
     123        linkonce \
     124        concurrency/waitfor/autogen_destructor \
     125        concurrency/waitfor/static_inline \
     126        linking/mangling/anon \
     127        .dummy_hack # build but do not install
    122128EXTRA_DIST = test.py \
    123129        pybin/__init__.py \
     
    154160avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa
    155161linkonce_SOURCES = link-once/main.cfa link-once/partner.cfa
    156 concurrency_waitfor_autogen_destructor_SOURCES = concurrency/waitfor/autogen_destructor.cfa concurrency/waitfor/nodestructor.cfa
     162concurrency_waitfor_autogen_destructor_SOURCES = concurrency/waitfor/autogen_destructor.cfa concurrency/waitfor/gendestructor.cfa
     163concurrency_waitfor_static_inline_SOURCES = concurrency/waitfor/static_inline.cfa concurrency/waitfor/inlinemutex.cfa
    157164linking_mangling_anon_SOURCES = linking/mangling/header.hfa linking/mangling/lib.cfa linking/mangling/main.cfa
    158165# automake doesn't know we still need C/CPP rules so pretend like we have a C program
  • tests/concurrency/waitfor/autogen_destructor.cfa

    ra56d544 r7e8c071  
    1 #include "nodestructor.hfa"
     1#include "gendestructor.hfa"
    22
    33int main(int, char*[]) {
  • tests/concurrency/waitfor/gendestructor.cfa

    ra56d544 r7e8c071  
    1 #include "nodestructor.hfa"
     1#include "gendestructor.hfa"
    22
    33#include <fstream.hfa>
  • tests/concurrency/waitfor/static_inline.cfa

    ra56d544 r7e8c071  
    1 #include <fstream.hfa>
    2 #include <thread.hfa>
    3 
    4 thread Cleaner {};
    5 
    6 static inline void ^?{} ( Cleaner &mutex this ) {}
    7 
    8 static inline void cleanup( Cleaner &mutex this ) {}
    9 
    10 void main( Cleaner & this ) {
    11         waitfor( cleanup : this ) {
    12                 sout | "Cleaning";
    13         }
    14 
    15         waitfor( ^?{} : this ) {
    16                 sout | "Done";
    17         }
    18 }
     1#include "inlinemutex.hfa"
    192
    203int main() {
Note: See TracChangeset for help on using the changeset viewer.