80_epoll_wait_timeout.py 327 B

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