X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fintegration%2Ftestlib%2Fconst.py;h=65a66a0a148945943a59458f3525336f40af2f11;hb=c8402791b82947c49ba1d04f855dab04191607ca;hp=36f5f9777261eb502ba419f440b10dc282a5f510;hpb=9a012e485a2ed5ea5a28903d93bc625767bb20b2;p=tinc diff --git a/test/integration/testlib/const.py b/test/integration/testlib/const.py index 36f5f977..65a66a0a 100755 --- a/test/integration/testlib/const.py +++ b/test/integration/testlib/const.py @@ -7,3 +7,9 @@ EXIT_SKIP = 77 # Family name for multiprocessing Listener/Connection MPC_FAMILY = "AF_PIPE" if os.name == "nt" else "AF_UNIX" + +# Do access checks on files. Disabled when not available or not applicable. +RUN_ACCESS_CHECKS = os.name != "nt" and os.geteuid() != 0 + +# Copy of the same define from net.h +MAXSOCKETS = 8