Changeset 0764cfb
- Timestamp:
- Jul 14, 2017, 12:18:59 PM (7 years ago)
- 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
- Location:
- src/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/Makefile.am
rd6ff3ff r0764cfb 31 31 all-local: ${TESTS:=.run} 32 32 33 clean-local: 34 rm -f ${TESTS} 35 33 36 % : %.c ${CC} 34 37 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} -
src/tests/preempt_longrun/Makefile.in
rd6ff3ff r0764cfb 790 790 clean: clean-am 791 791 792 clean-am: clean-generic mostlyclean-am792 clean-am: clean-generic clean-local mostlyclean-am 793 793 794 794 distclean: distclean-am … … 857 857 858 858 .PHONY: all all-am all-local check check-TESTS check-am clean \ 859 clean-generic c scopelist-am ctags-am distclean \859 clean-generic clean-local cscopelist-am ctags-am distclean \ 860 860 distclean-generic distdir dvi dvi-am html html-am info info-am \ 861 861 install install-am install-data install-data-am install-dvi \ … … 875 875 all-local: ${TESTS:=.run} 876 876 877 clean-local: 878 rm -f ${TESTS} 879 877 880 % : %.c ${CC} 878 881 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} -
src/tests/sched-int-barge.c
rd6ff3ff r0764cfb 4 4 #include <stdlib> 5 5 #include <thread> 6 7 #ifndef N 8 #define N 100_000 9 #endif 6 10 7 11 enum state_t { WAIT, SIGNAL, BARGE }; … … 73 77 } 74 78 75 if( c->counter >= 100_000) c->done = true;79 if( c->counter >= N ) c->done = true; 76 80 return !c->done; 77 81 }
Note: See TracChangeset
for help on using the changeset viewer.