Ignore:
Timestamp:
Aug 30, 2008, 9:41:00 PM (13 years ago)
Author:
Peter
Message:

moving LFS test to separate file so skipping the test (when using --disable-largefile) becomes more visible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/fileutil_test.cc

    r1457 r1458  
    2323  02111-1307, USA.
    2424*/
    25 
    26 #ifdef HAVE_CONFIG_H
    27 #include "config.h"
    28 #endif
    2925
    3026#include "Suite.h"
     
    182178  }
    183179
    184   #ifndef YAT_LFS_DISABLED
    185   test_large_file_support(suite);
    186   #else
    187   suite.err() << "Skipping test of large file support\n";
    188   #endif
    189180  return suite.return_value();
    190181}
    191182
    192 void test_large_file_support(test::Suite& suite)
    193 {
    194   bool ok=true;
    195   suite.err() << "Testing Large File Support\n";
    196   off_t s = std::numeric_limits<off_t>::max() >> 20;
    197   suite.err() << "maximal file size: " << s << " Mb" << std::endl;
    198   suite.add(s>2048);
    199   if (ok)
    200     suite.err() << "Ok\n";
    201   else
    202     suite.err() << "failed\n";
    203 }
Note: See TracChangeset for help on using the changeset viewer.