Changeset 1456


Ignore:
Timestamp:
Aug 30, 2008, 4:44:37 AM (13 years ago)
Author:
Peter
Message:

adding test - refs #426

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/fileutil_test.cc

    r1437 r1456  
    2424*/
    2525
     26#ifdef HAVE_CONFIG_H
     27#include "config.h"
     28#endif
     29
    2630#include "Suite.h"
    2731
     
    3337#include <string>
    3438
     39using namespace theplu::yat;
     40void test_large_file_support(test::Suite&);
     41
    3542int main(int argc,char* argv[])
    3643
    37   using namespace theplu::yat;
    3844  test::Suite suite(argc, argv);
    3945  suite.err() << "testing FileUtil ... " << std::endl;
     
    175181  }
    176182
     183  test_large_file_support(suite);
    177184  return suite.return_value();
    178185}
     186
     187void test_large_file_support(test::Suite& suite)
     188{
     189  bool ok=true;
     190  suite.err() << "Testing Large File Support\n";
     191  off_t s = std::numeric_limits<off_t>::max() >> 20;
     192  suite.err() << "maximal file size: " << s << " Mb" << std::endl;
     193  suite.add(s>2048);
     194  if (ok)
     195    suite.err() << "Ok\n";
     196  else
     197    suite.err() << "failed\n";
     198}
Note: See TracChangeset for help on using the changeset viewer.