80_epoll_wait_timeout.py 351 B

123456789101112131415
  1. #!/usr/bin/env python2
  2. import os, sys, mmap
  3. from regression import Regression
  4. loader = sys.argv[1]
  5. regression = Regression(loader, "epoll_wait_timeout", None, 50000)
  6. regression.add_check(name="epoll_wait timeout",
  7. args = ['8000'],
  8. check=lambda res: "epoll_wait test passed" in res[0].out)
  9. rv = regression.run_checks()
  10. if rv: sys.exit(rv)