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

Tests needed for systems without ftruncate

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.4.0-rc4, 3.2.12
    • Labels:
      None
    • Sprint:
      Storage 2016-11-21

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: