Changeset 144:3af88cce7577 in rrlib_util


Ignore:
Timestamp:
09.05.2016 16:05:28 (4 years ago)
Author:
Jens Wettach <wettach@…>
Branch:
default
Phase:
public
Message:

removed debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/fileio.cpp

    r143 r144  
    3838#include "rrlib/util/tUnitTestSuite.h" 
    3939#include "rrlib/util/fileio.h" 
    40 #include "rrlib/util/join.h" 
    4140 
    4241//---------------------------------------------------------------------- 
     
    8988  void TestFileAccess() 
    9089  { 
    91     RRLIB_LOG_PRINT_STATIC(DEBUG, "\nTestShellExpandFilename ... started"); 
    9290    string result(""), expected(""), absolute_file_name(""), file_name(""); 
    9391    char* env_home(getenv("HOME")); 
    9492    RRLIB_UNIT_TESTS_ASSERT(env_home != nullptr); 
    95     RRLIB_LOG_PRINT_STATIC(DEBUG, "env_home \t\t= ", env_home); 
    9693    CPPUNIT_ASSERT_NO_THROW(absolute_file_name = CreateTempFile(env_home)); 
    97     RRLIB_LOG_PRINT_STATIC(DEBUG, "absolute_file_name \t= ", absolute_file_name); 
    9894    RRLIB_UNIT_TESTS_ASSERT(FileExists(absolute_file_name)); 
    9995    file_name = absolute_file_name; 
     
    105101    string search(string("$HOME/") + file_name); 
    106102    expected = absolute_file_name; 
    107     RRLIB_LOG_PRINT_STATIC(DEBUG, "searched file name \t= ", search, "\nexpected \t\t= ", expected); 
    108103    bool ok(false); 
    109104    CPPUNIT_ASSERT_NO_THROW(ok = ShellExpandFilename(result, search)); 
     
    120115    CPPUNIT_ASSERT_NO_THROW(DeleteFile(expected)); 
    121116    RRLIB_UNIT_TESTS_ASSERT(!FileExists(absolute_file_name)); 
    122     RRLIB_LOG_PRINT_STATIC(DEBUG, "\nTestShellExpandFilename ... completed"); 
    123117  } 
    124118 
     
    131125    std::vector<std::string> files; 
    132126    RRLIB_UNIT_TESTS_ASSERT(GetAllFilesInDirectory(temp_dir, files)); 
    133     RRLIB_LOG_PRINT_STATIC(USER, "\nfiles: ", Join(files)); 
    134127    RRLIB_UNIT_TESTS_ASSERT(files.size() == 2); 
    135128 
     
    138131    RRLIB_UNIT_TESTS_ASSERT(FileExists(test_dir)); 
    139132    RRLIB_UNIT_TESTS_ASSERT(GetAllFilesInDirectory(temp_dir, files)); 
    140     RRLIB_LOG_PRINT_STATIC(USER, "\nfiles: ", Join(files)); 
    141133    RRLIB_UNIT_TESTS_ASSERT(files.size() == 3); 
    142134    CPPUNIT_ASSERT_NO_THROW(ChangeCurrentDirectory(test_dir)); 
    143135    string cur_dir; 
    144136    CPPUNIT_ASSERT_NO_THROW(cur_dir = GetCurrentDirectory()); 
    145     RRLIB_LOG_PRINT_STATIC(USER, "\ncurrent dir = <", cur_dir, ">"); 
    146     RRLIB_LOG_PRINT_STATIC(USER, "\ntest dir = <", test_dir, ">"); 
    147137    RRLIB_UNIT_TESTS_ASSERT(cur_dir == test_dir); 
    148138 
     
    150140    CPPUNIT_ASSERT_NO_THROW(temp_file = CreateTempFile(test_dir)); 
    151141    RRLIB_UNIT_TESTS_ASSERT(GetAllFilesInDirectory(test_dir, files)); 
    152     RRLIB_LOG_PRINT_STATIC(USER, "\nfiles: ", Join(files)); 
    153142    RRLIB_UNIT_TESTS_ASSERT(files.size() == 3); 
    154143 
    155144    string file_dir(""), file_base(""), file_ext(""); 
    156145    SplitFullQualifiedFilename(temp_file, file_dir, file_base, file_ext); 
    157     RRLIB_LOG_PRINT_STATIC(USER, "\nfile_dir = ", file_dir, ", file_base = ", file_base, ", file_ext = ", file_ext); 
    158146    RRLIB_UNIT_TESTS_ASSERT(file_dir == test_dir.substr(0, test_dir.size() - 1)); 
    159147    RRLIB_UNIT_TESTS_ASSERT(file_dir == test_dir.substr(0, test_dir.find_last_of("/"))); 
Note: See TracChangeset for help on using the changeset viewer.