Ignore:
Timestamp:
Jun 11, 2018, 10:16:04 AM (6 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, with_gc
Children:
3fc59bdb
Parents:
85b1deb
Message:

Added the option to make longrun tests run until failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/stack.c

    r85b1deb r7bdcac1  
    33#include <thread>
    44#include <time>
     5
     6#include "long_tests.h"
    57
    68#ifndef PREEMPTION_RATE
     
    1820        volatile long long a = 326_417ul;
    1921        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++) {
    2123                n *= a;
    2224                n %= p;
     25                KICK_WATCHDOG;
    2326        }
    2427
    25         if( n != a ) {
     28        if( !TEST(n == a) ) {
    2629                abort();
    2730        }
Note: See TracChangeset for help on using the changeset viewer.