80_sockets.py 312 B

12345678910111213
  1. import os, sys, mmap
  2. from regression import Regression
  3. loader = sys.argv[1]
  4. # Running getsockopt
  5. regression = Regression(loader, "getsockopt", None)
  6. regression.add_check(name="getsockopt",
  7. check=lambda res: "getsockopt: Got socket type OK" in res[0].out)
  8. rv = regression.run_checks()
  9. if rv: sys.exit(rv)