Changeset 2035


Ignore:
Timestamp:
Aug 22, 2009, 4:32:57 PM (11 years ago)
Author:
Peter
Message:
  • deprecate YAT_TEST_VERBOSE and use VERBOSE instead (fixes #557).
  • tie cerr with cout, so cout is flushed before anything is written to cerr. (We should be more careful in selecting writing to cout or cerr).
  • updated README appropriately. modified make examples to less gnu make specific syntax.
Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/README

    r1933 r2035  
    3838  make as follows:
    3939
    40     make YAT_TEST_VERBOSE=1 check
     40    env VERBOSE=1 make -e check
    4141
    4242  If you want to run only a subset of tests, you can invoke make as follows
    4343
    44     make TESTS="first_test second_test" check
     44    env TESTS="first_test second_test" make -e check
    4545
    4646
  • trunk/test/Suite.cc

    r1998 r2035  
    4141  {
    4242    char* buffer=std::getenv("YAT_TEST_VERBOSE");
     43    if (buffer)
     44      std::cerr << "WARNING: environment variable `YAT_TEST_VERBOSE' "
     45                << "is deprecated\n  use `VERBOSE' instead.\n";
     46    char* env_verbose=std::getenv("VERBOSE");
    4347
    4448    if ( (argc>1 && argv[1]==std::string("-v")) ||
    45          (buffer && buffer == std::string("1")) )
     49         (buffer && buffer == std::string("1")) ||
     50         env_verbose) {
    4651      verbose_ = true;
     52      // synchronize cerr and cout, i.e., cout is flushed before
     53      // writing anything to cerr.
     54      std::cerr.tie(&std::cout);
     55    }
    4756    else {
    4857      verbose_ = false;
Note: See TracChangeset for help on using the changeset viewer.