Show
Ignore:
Timestamp:
03/08/10 11:42:36 (22 months ago)
Author:
westram
Message:
  • execute "slow" tests after other tests
  • flagged save/load DB test as slow
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/UNIT_TESTER/UnitTester.cxx

    r6677 r6682  
    1818#include <cstdlib> 
    1919#include <cstdio> 
     20#include <cstring> 
    2021 
    2122#include <sys/time.h> 
     
    152153    } 
    153154 
     155    if (duration_ms_this>1000) {                    // long test duration 
     156        if (strlen(test.name) <= 10 || memcmp(test.name, "TEST_SLOW_", 10) != 0) { 
     157            fprintf(stderr, "%s: Warning: Name of slow tests shall start with TEST_SLOW_ (it'll be run after other tests)\n", 
     158                    test.location); 
     159        } 
     160    } 
     161 
    154162    return result == TEST_OK; 
    155163}