Changeset 1570 for trunk


Ignore:
Timestamp:
Oct 13, 2008, 8:34:27 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Avoid allocating unused resources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Suite.cc

    r1516 r1570  
    22
    33/*
    4   Copyright (C) 2008 Peter Johansson
     4  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    55
    66  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    3535
    3636  Suite::Suite(int argc, char* argv[])
    37     : known_issues_(0), ok_(true)
     37    : dev_null_(NULL), known_issues_(0), ok_(true)
    3838  {
    39     dev_null_ = new std::ofstream("/dev/null");
    4039    char* buffer=std::getenv("YAT_TEST_VERBOSE");
    4140
     
    4544    else {
    4645      verbose_ = false;
     46      dev_null_ = new std::ofstream("/dev/null");
    4747      if (argc>1){
    4848        std::stringstream ss(argv[0]);
Note: See TracChangeset for help on using the changeset viewer.