Changeset 52fad0c for tests


Ignore:
Timestamp:
Aug 27, 2021, 3:52:13 PM (4 years ago)
Author:
Henry Xue <y58xue@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
1d402be
Parents:
6c2dc00 (diff), 702839bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r6c2dc00 r52fad0c  
    8282        concurrent/clib_tls.c \
    8383        exceptions/with-threads.hfa \
    84         exceptions/except-io.hfa \
    85         unified_locking/mutex_test.hfa
     84        exceptions/except-io.hfa
    8685
    8786dist-hook:
  • tests/concurrent/mutexstmt/locks.cfa

    r6c2dc00 r52fad0c  
    1 #include <mutex_stmt_locks.hfa>
     1#include <mutex_stmt.hfa>
    22#include <locks.hfa>
    33
     
    1313        for (unsigned int i = 0; i < num_times; i++) {
    1414                mutex ( m1 ) count++;
    15                 mutex ( m1 ) {
     15                mutex ( m1 ) { 
    1616                        assert(!insideFlag);
    1717                        insideFlag = true;
     
    6565        printf("Start Test: single lock mutual exclusion\n");
    6666        {
    67                 T_Mutex t[10];
     67                T_Mutex t[1];
    6868        }
    6969        printf("End Test: single lock mutual exclusion\n");
  • tests/concurrent/mutexstmt/monitors.cfa

    r6c2dc00 r52fad0c  
    11#include <monitor.hfa>
     2#include <mutex_stmt.hfa>
    23#include <stdio.h>
    34#include <stdlib.hfa>
     
    1314bool insideFlag = false;
    1415int count = 0;
     16bool startFlag = false;
    1517
    1618void main( T_Mutex & this ) {
Note: See TracChangeset for help on using the changeset viewer.