Ignore:
Timestamp:
Aug 9, 2006, 11:36:31 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Removed test/parser.cc and test/stats.cc. These tests are an essential
part in the test/directory.cc and test/file.cc, and thus redundant.
Fixed the other tests to actually report success or failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/directory.cc

    r144 r145  
    2424#include "Directory.h"
    2525
    26 #include <string>
     26#include <iostream>
    2727
    2828int main(const int argc,const char* argv[])
    2929{
    30   using namespace theplu::svnstat;
    31   std::string path("..");
    32   Directory directory(0,path);
     30  try {
     31    // create a file structure of a subversion WC
     32    theplu::svnstat::Directory directory(0,"..");
     33    directory.parse();
     34  }
     35  catch (const std::runtime_error& x) {
     36    std::cerr << "Test directory: " << x.what() << std::endl;
     37    return -1;
     38  }
    3339  return 0;
    3440}
Note: See TracChangeset for help on using the changeset viewer.