90_large-mmap.py 475 B

123456789101112131415161718
  1. #!/usr/bin/python
  2. import os, sys, mmap
  3. from regression import Regression
  4. loader = './pal'
  5. # Running Bootstrap
  6. regression = Regression(loader, "large-mmap")
  7. regression.add_check(name="Ftruncate",
  8. check=lambda res: "large-mmap: ftruncate OK" in res[0].out)
  9. regression.add_check(name="Large mmap",
  10. check=lambda res: "large-mmap: mmap 1 completed OK" in res[0].out and \
  11. "large-mmap: mmap 2 completed OK" in res[0].out)
  12. regression.run_checks()