Changeset 636d45f5 for tests


Ignore:
Timestamp:
Dec 18, 2020, 12:26:00 PM (3 years ago)
Author:
Colby Alexander Parsons <caparsons@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
089b1a9
Parents:
dff1fd1
Message:

updated locks test and added timeout test similar to timeout condlock test from uC++

Location:
tests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • tests/locks.cfa

    rdff1fd1 r636d45f5  
    11#include <stdio.h>
    22#include "locks.hfa"
    3 
    4 #include "kernel_private.hfa"
    5 #include <stdlib.h>
    6 
    7 #include <kernel.hfa>
    83#include <stdlib.hfa>
    94#include <thread.hfa>
     
    224219int main() {
    225220        processor p[2];
     221        wait( c_s, 1`ns );
    226222        printf("Start Test 1: multi acquisition lock and condition variable single wait/notify\n");
    227223        {
Note: See TracChangeset for help on using the changeset viewer.