Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3016

Tests needed for systems without ftruncate

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.0, 3.2.12, 3.4.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2016-11-21

      This came up as part of the discussion of WT-2336. WiredTiger should work on systems that do not support ftruncate. In fact, if HAVE_FTRUNCATE is undef'ed in wiredtiger_config.h, the python test suite runs without issue except for test_compact02.

      FERROR in test_compact02.test_compact02.test_compact02 -s 0 (file.default.default)

      ======================================================================
      FAIL: test_compact02.test_compact02.test_compact02 -s 0 (file.default.default)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/Users/dda/wt/git/wt-2336-test-file-ops.no-ftruncate/test/suite/test_compact02.py", line 148, in test_compact02
      self.assertLess(sz, self.fullsize / 2)
      AssertionError: 195563520 not less than 68161500

      I think this could be fixed in the test case.

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: