90_large-mmap.py 499 B

1234567891011121314151617
  1. import os, sys, mmap
  2. from regression import Regression
  3. loader = sys.argv[1]
  4. # Running Bootstrap
  5. regression = Regression(loader, "large-mmap", None, 240000)
  6. regression.add_check(name="Ftruncate",
  7. check=lambda res: "large-mmap: ftruncate OK" in res[0].out)
  8. regression.add_check(name="Large mmap",
  9. check=lambda res: "large-mmap: mmap 1 completed OK" in res[0].out and \
  10. "large-mmap: mmap 2 completed OK" in res[0].out)
  11. rv = regression.run_checks()
  12. if rv: sys.exit(rv)