X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/SecurityTests/regressions/auth/auth-SessionCreate-01-basic.c diff --git a/SecurityTests/regressions/auth/auth-SessionCreate-01-basic.c b/SecurityTests/regressions/auth/auth-SessionCreate-01-basic.c deleted file mode 100644 index 5cede143..00000000 --- a/SecurityTests/regressions/auth/auth-SessionCreate-01-basic.c +++ /dev/null @@ -1,34 +0,0 @@ -/* NO_AUTOMATED_TESTING */ - -#include -#include /* getenv(3) */ -#include -#include "testmore.h" - -#define SSID_ENV_STR "SECURITYSESSIONID" /* hard-coded in Authorization.cpp */ - -/* - * Not automated because SessionCreate() implicitly invokes task_for_pid(), - * which in turn can trigger an Authorization call (and thus UI) via - * taskgated. - */ -int main(__unused int ac, __unused const char *av[]) -{ - char *ssid = NULL; - - plan_tests(1); - - if ((ssid = getenv(SSID_ENV_STR)) != NULL) - printf("Current SecuritySessionID: %s\n", ssid); - /* - * @@@ SessionCreate() is documented to return "noErr" on success, but - * errSessionSuccess is part of the SessionStatus enum - */ - is(SessionCreate(0/*SessionCreationFlags*/, - sessionHasGraphicAccess|sessionHasTTY/*SessionAttributeFlags*/), - errSessionSuccess, "SessionCreate()"); - if ((ssid = getenv(SSID_ENV_STR)) == NULL) - fprintf(stderr, "Missing %s in environment!\n", SSID_ENV_STR); - printf("New SecuritySessionID: %s\n", ssid); - return 0; -}