Changeset 7bdcac1 for src/tests/preempt_longrun/stack.c
- Timestamp:
- Jun 11, 2018, 10:16:04 AM (6 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, with_gc
- Children:
- 3fc59bdb
- Parents:
- 85b1deb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/stack.c
r85b1deb r7bdcac1 3 3 #include <thread> 4 4 #include <time> 5 6 #include "long_tests.h" 5 7 6 8 #ifndef PREEMPTION_RATE … … 18 20 volatile long long a = 326_417ul; 19 21 volatile long long n = 1l; 20 for (volatile long long i = 0; i < p; i++) {22 for (volatile long long i = 0; TEST(i < p); i++) { 21 23 n *= a; 22 24 n %= p; 25 KICK_WATCHDOG; 23 26 } 24 27 25 if( n != a) {28 if( !TEST(n == a) ) { 26 29 abort(); 27 30 }
Note: See TracChangeset
for help on using the changeset viewer.