Ignore:
Timestamp:
Jul 7, 2010, 7:35:17 AM (11 years ago)
Author:
Peter Johansson
Message:

detecting old cache files and re-writing them in new format (version 8). closes #443 and #289

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/cache_partial_test.cc

    r1122 r1124  
    2424#include "Suite.h"
    2525
    26 #include "lib/ClassicStats.h"
     26#include "lib/AddStats.h"
    2727#include "lib/File.h"
    2828#include "lib/SVN.h"
    2929#include "lib/SVNinfo.h"
     30#include "lib/StatsCollection.h"
    3031#include "lib/utility.h"
    3132
     
    6566  // test that load of partial cache is successful
    6667  copy_file(test::src_filename("data/AUTHORS.svndigest-cache-r61"), cache_file);
    67   ClassicStats cstats(filename);
     68  AddStats cstats(filename);
    6869  std::ifstream is(cache_file.c_str());
    69   svn_revnum_t rev = cstats.load_cache(is);
     70  bool cache_ok=true;
     71  cstats.load_cache(is, cache_ok);
     72  cstats.load_cache(is, cache_ok);
     73  svn_revnum_t rev = cstats.load_cache(is, cache_ok);
     74  if (!cache_ok) {
     75    suite.out() << "error: seems cache file " << cache_file << " is old\n";
     76    suite.add(false);
     77  }
    7078  if (rev!=48) {
    7179    suite.out() << "load cache: " << cache_file << " returned " << rev << "\n"
Note: See TracChangeset for help on using the changeset viewer.