Changeset 0764cfb


Ignore:
Timestamp:
Jul 14, 2017, 12:18:59 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
4ec769c
Parents:
d6ff3ff
Message:

Preemption tests now clean properly and all use de same syntax for N

Location:
src/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/Makefile.am

    rd6ff3ff r0764cfb  
    3131all-local: ${TESTS:=.run}
    3232
     33clean-local:
     34        rm -f ${TESTS}
     35
    3336% : %.c ${CC}
    3437        ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@}
  • src/tests/preempt_longrun/Makefile.in

    rd6ff3ff r0764cfb  
    790790clean: clean-am
    791791
    792 clean-am: clean-generic mostlyclean-am
     792clean-am: clean-generic clean-local mostlyclean-am
    793793
    794794distclean: distclean-am
     
    857857
    858858.PHONY: all all-am all-local check check-TESTS check-am clean \
    859         clean-generic cscopelist-am ctags-am distclean \
     859        clean-generic clean-local cscopelist-am ctags-am distclean \
    860860        distclean-generic distdir dvi dvi-am html html-am info info-am \
    861861        install install-am install-data install-data-am install-dvi \
     
    875875all-local: ${TESTS:=.run}
    876876
     877clean-local:
     878        rm -f ${TESTS}
     879
    877880% : %.c ${CC}
    878881        ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@}
  • src/tests/sched-int-barge.c

    rd6ff3ff r0764cfb  
    44#include <stdlib>
    55#include <thread>
     6
     7#ifndef N
     8#define N 100_000
     9#endif
    610
    711enum state_t { WAIT, SIGNAL, BARGE };
     
    7377        }
    7478
    75         if( c->counter >= 100_000 ) c->done = true;
     79        if( c->counter >= N ) c->done = true;
    7680        return !c->done;
    7781}
Note: See TracChangeset for help on using the changeset viewer.