Note: Google Test filter = - [==========] Running 60 tests from 7 test cases. [----------] Global test environment set-up. [----------] 21 tests from PolicyEngineTest [ RUN ] PolicyEngineTest.StringPatternsOK [ OK ] PolicyEngineTest.StringPatternsOK (0 ms) [ RUN ] PolicyEngineTest.StringPatternsBAD [ OK ] PolicyEngineTest.StringPatternsBAD (0 ms) [ RUN ] PolicyEngineTest.SimpleStrMatch [ OK ] PolicyEngineTest.SimpleStrMatch (1 ms) [ RUN ] PolicyEngineTest.SimpleIfNotStrMatch [ OK ] PolicyEngineTest.SimpleIfNotStrMatch (0 ms) [ RUN ] PolicyEngineTest.SimpleIfNotStrMatchWild1 [ OK ] PolicyEngineTest.SimpleIfNotStrMatchWild1 (0 ms) [ RUN ] PolicyEngineTest.SimpleIfNotStrMatchWild2 [ OK ] PolicyEngineTest.SimpleIfNotStrMatchWild2 (0 ms) [ RUN ] PolicyEngineTest.IfNotStrMatchTwoRulesWild1 [ OK ] PolicyEngineTest.IfNotStrMatchTwoRulesWild1 (0 ms) [ RUN ] PolicyEngineTest.IfNotStrMatchTwoRulesWild2 [ OK ] PolicyEngineTest.IfNotStrMatchTwoRulesWild2 (0 ms) [ RUN ] PolicyEngineTest.OneRuleTest [ OK ] PolicyEngineTest.OneRuleTest (0 ms) [ RUN ] PolicyEngineTest.ThreeRulesTest [ OK ] PolicyEngineTest.ThreeRulesTest (1 ms) [ RUN ] PolicyEngineTest.ParameterSetTest [ OK ] PolicyEngineTest.ParameterSetTest (0 ms) [ RUN ] PolicyEngineTest.OpcodeConstraints [ OK ] PolicyEngineTest.OpcodeConstraints (0 ms) [ RUN ] PolicyEngineTest.TrueFalseOpcodes [ OK ] PolicyEngineTest.TrueFalseOpcodes (0 ms) [ RUN ] PolicyEngineTest.OpcodeMakerCase1 [ OK ] PolicyEngineTest.OpcodeMakerCase1 (0 ms) [ RUN ] PolicyEngineTest.OpcodeMakerCase2 [ OK ] PolicyEngineTest.OpcodeMakerCase2 (0 ms) [ RUN ] PolicyEngineTest.IntegerOpcodes [ OK ] PolicyEngineTest.IntegerOpcodes (0 ms) [ RUN ] PolicyEngineTest.LogicalOpcodes [ OK ] PolicyEngineTest.LogicalOpcodes (0 ms) [ RUN ] PolicyEngineTest.WCharOpcodes1 [ OK ] PolicyEngineTest.WCharOpcodes1 (0 ms) [ RUN ] PolicyEngineTest.WCharOpcodes2 [ OK ] PolicyEngineTest.WCharOpcodes2 (0 ms) [ RUN ] PolicyEngineTest.ActionOpcodes [ OK ] PolicyEngineTest.ActionOpcodes (0 ms) [ RUN ] PolicyEngineTest.Rules1 [ OK ] PolicyEngineTest.Rules1 (1 ms) [----------] 21 tests from PolicyEngineTest (3 ms total) [----------] 17 tests from RestrictedTokenTest [ RUN ] RestrictedTokenTest.InvalidHandle [ OK ] RestrictedTokenTest.InvalidHandle (0 ms) [ RUN ] RestrictedTokenTest.DefaultInit [ OK ] RestrictedTokenTest.DefaultInit (14 ms) [ RUN ] RestrictedTokenTest.CustomInit fixme:ntdll:NtSetInformationToken unimplemented class 5 [ OK ] RestrictedTokenTest.CustomInit (0 ms) [ RUN ] RestrictedTokenTest.ResultToken fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x731fb0, 0x32fa04): stub .\src\restricted_token_unittest.cc(108): error: Value of: token.GetRestrictedTokenHandle(&restricted_token) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.ResultToken (1 ms) [ RUN ] RestrictedTokenTest.DefaultDacl fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x731fb0, 0x32f9a8): stub .\src\restricted_token_unittest.cc(149): error: Value of: token.GetRestrictedTokenHandle(&handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DefaultDacl (1 ms) [ RUN ] RestrictedTokenTest.DenySid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 1, 0x732a00, 0, (nil), 0, (nil), 0x32fa48): stub .\src\restricted_token_unittest.cc(180): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySid (0 ms) [ RUN ] RestrictedTokenTest.DenySids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 6, 0x731fb0, 0, (nil), 0, (nil), 0x32faf0): stub .\src\restricted_token_unittest.cc(207): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySids (0 ms) [ RUN ] RestrictedTokenTest.DenySidsException fixme:advapi:CreateRestrictedToken (0x44, 0x0, 5, 0x731eb0, 0, (nil), 0, (nil), 0x32fa08): stub .\src\restricted_token_unittest.cc(239): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenySidsException (1 ms) [ RUN ] RestrictedTokenTest.DenyOwnerSid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 1, 0x732120, 0, (nil), 0, (nil), 0x32fa60): stub .\src\restricted_token_unittest.cc(272): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DenyOwnerSid (1 ms) [ RUN ] RestrictedTokenTest.DeleteAllPrivileges fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 20, 0x732890, 0, (nil), 0x32fb24): stub .\src\restricted_token_unittest.cc(302): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeleteAllPrivileges (0 ms) [ RUN ] RestrictedTokenTest.DeleteAllPrivilegesException fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 19, 0x7322c8, 0, (nil), 0x32fa98): stub .\src\restricted_token_unittest.cc(323): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeleteAllPrivilegesException (1 ms) [ RUN ] RestrictedTokenTest.DeletePrivilege fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 1, 0x732480, 0, (nil), 0x32faf8): stub .\src\restricted_token_unittest.cc(350): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.DeletePrivilege (1 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSid fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x733468, 0x32fb08): stub .\src\restricted_token_unittest.cc(411): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSid (1 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSidCurrentUser fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x733468, 0x32fb40): stub .\src\restricted_token_unittest.cc(426): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSidCurrentUser (0 ms) [ RUN ] RestrictedTokenTest.AddRestrictingSidLogonSession fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 1, 0x732088, 0x32fb40): stub .\src\restricted_token_unittest.cc(443): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddRestrictingSidLogonSession (1 ms) [ RUN ] RestrictedTokenTest.AddMultipleRestrictingSids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 3, 0x733060, 0x32f9ac): stub .\src\restricted_token_unittest.cc(463): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddMultipleRestrictingSids (1 ms) [ RUN ] RestrictedTokenTest.AddAllSidToRestrictingSids fixme:advapi:CreateRestrictedToken (0x44, 0x0, 0, (nil), 0, (nil), 8, 0x733468, 0x32faa0): stub .\src\restricted_token_unittest.cc(492): error: Value of: token.GetRestrictedTokenHandle(&token_handle) Actual: 120 Expected: 0L Which is: 0 [ FAILED ] RestrictedTokenTest.AddAllSidToRestrictingSids (1 ms) [----------] 17 tests from RestrictedTokenTest (25 ms total) [----------] 3 tests from ServiceResolverTest [ RUN ] ServiceResolverTest.PatchesServices .\src\service_resolver_unittest.cc(112): error: Value of: ret Actual: -1073741823 Expected: ((NTSTATUS)0x00000000L) Which is: 0 NtClose, last error: 2 .\src\service_resolver_unittest.cc(115): error: Value of: ret Actual: -1073741823 Expected: ((NTSTATUS)0x00000000L) Which is: 0 NtCreateFile, last error: 2 .\src\service_resolver_unittest.cc(119): error: Value of: ret Actual: -1073741823 Expected: ((NTSTATUS)0x00000000L) Which is: 0 NtCreateMutant, last error: 2 .\src\service_resolver_unittest.cc(123): error: Value of: ret Actual: -1073741823 Expected: ((NTSTATUS)0x00000000L) Which is: 0 NtMapViewOfSection, last error: 2 [ FAILED ] ServiceResolverTest.PatchesServices (3 ms) [ RUN ] ServiceResolverTest.FailsIfNotService [ OK ] ServiceResolverTest.FailsIfNotService (0 ms) [ RUN ] ServiceResolverTest.PatchesPatchedServices [ OK ] ServiceResolverTest.PatchesPatchedServices (2 ms) [----------] 3 tests from ServiceResolverTest (5 ms total) [----------] 8 tests from IPCTest [ RUN ] IPCTest.ThreadPoolRegisterTest1 [ OK ] IPCTest.ThreadPoolRegisterTest1 (0 ms) [ RUN ] IPCTest.ThreadPoolRegisterTest2 [ OK ] IPCTest.ThreadPoolRegisterTest2 (1 ms) [ RUN ] IPCTest.ThreadPoolSignalAndWaitTest [ OK ] IPCTest.ThreadPoolSignalAndWaitTest (1000 ms) [ RUN ] IPCTest.ChannelMaker [ OK ] IPCTest.ChannelMaker (0 ms) [ RUN ] IPCTest.ClientLockUnlock [ OK ] IPCTest.ClientLockUnlock (0 ms) [ RUN ] IPCTest.CrossCallStrPacking [ OK ] IPCTest.CrossCallStrPacking (1 ms) [ RUN ] IPCTest.ClientFastServer [ OK ] IPCTest.ClientFastServer (1 ms) [ RUN ] IPCTest.ClientSlowServer [ OK ] IPCTest.ClientSlowServer (1253 ms) [----------] 8 tests from IPCTest (2256 ms total) [----------] 7 tests from JobTest [ RUN ] JobTest.TestCreation fixme:ntdll:NtCreateJobObject stub: 0x32fa48 1f001f L"my_test_job_name" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb98 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb8c 4 fixme:ntdll:NtOpenJobObject stub: 0x32fc0c 10000000 L"my_test_job_name" .\src\job_unittest.cc(23): error: Expected: (0) != (reinterpret_cast(job_handle)), actual: 0 vs 0 [ FAILED ] JobTest.TestCreation (1 ms) [ RUN ] JobTest.TestDetach fixme:ntdll:NtCreateJobObject stub: 0x32fa24 1f001f L"my_test_job_name" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb74 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb68 4 fixme:ntdll:NtOpenJobObject stub: 0x32fbe8 10000000 L"my_test_job_name" .\src\job_unittest.cc(52): error: Expected: (0) != (reinterpret_cast(job_handle_dup)), actual: 0 vs 0 [ FAILED ] JobTest.TestDetach (0 ms) [ RUN ] JobTest.TestExceptions fixme:ntdll:NtCreateJobObject stub: 0x32f978 1f001f L"my_test_job_name" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fac8 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fabc 4 fixme:ntdll:NtQueryInformationJobObject stub: 0xdead 4 0x32fc9c 4 0x32fc90 .\src\job_unittest.cc(85): error: Value of: result Actual: false Expected: true [ FAILED ] JobTest.TestExceptions (1 ms) [ RUN ] JobTest.DoubleInit fixme:ntdll:NtCreateJobObject stub: 0x32fa9c 1f001f L"my_test_job_name" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fbec 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fbe0 4 [ OK ] JobTest.DoubleInit (0 ms) [ RUN ] JobTest.NoInit [ OK ] JobTest.NoInit (0 ms) [ RUN ] JobTest.SecurityLevel fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job1" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb20 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb14 4 fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job2" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb20 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb14 4 fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job3" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb20 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb14 4 fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job4" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb20 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb14 4 fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job5" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fb20 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fb14 4 fixme:ntdll:NtCreateJobObject stub: 0x32f9d0 1f001f L"job6" [ OK ] JobTest.SecurityLevel (0 ms) [ RUN ] JobTest.ProcessInJob fixme:ntdll:NtCreateJobObject stub: 0x32f904 1f001f L"job_test_process" fixme:ntdll:NtSetInformationJobObject stub: 0xdead 9 0x32fa54 112 fixme:ntdll:NtSetInformationJobObject stub: 0xdead 4 0x32fa48 4 fixme:ntdll:NtAssignProcessToJobObject stub: 0xdead 0x50 fixme:ntdll:NtQueryInformationJobObject stub: 0xdead 3 0x32fc00 12 0x32fbf4 .\src\job_unittest.cc(177): error: Value of: result Actual: false Expected: true .\src\job_unittest.cc(179): error: Value of: jbpidl.NumberOfAssignedProcesses Actual: 0 Expected: 1 .\src\job_unittest.cc(180): error: Value of: jbpidl.NumberOfProcessIdsInList Actual: 0 Expected: 1 .\src\job_unittest.cc(181): error: Value of: jbpidl.ProcessIdList[0] Actual: 0 Expected: pi.dwProcessId Which is: 45 .\src\job_unittest.cc(185): error: Value of: ::CloseHandle(job_handle) Actual: false Expected: true [ FAILED ] JobTest.ProcessInJob (13 ms) [----------] 7 tests from JobTest (15 ms total) [----------] 2 tests from InterceptionManagerTest [ RUN ] InterceptionManagerTest.BufferLayout1 [ OK ] InterceptionManagerTest.BufferLayout1 (1 ms) [ RUN ] InterceptionManagerTest.BufferLayout2 [ OK ] InterceptionManagerTest.BufferLayout2 (0 ms) [----------] 2 tests from InterceptionManagerTest (1 ms total) [----------] 2 tests from SidTest [ RUN ] SidTest.Constructors [ OK ] SidTest.Constructors (0 ms) [ RUN ] SidTest.GetPSID [ OK ] SidTest.GetPSID (0 ms) [----------] 2 tests from SidTest (0 ms total) [----------] Global test environment tear-down [==========] 60 tests from 7 test cases ran. (2306 ms total) [ PASSED ] 41 tests. [ FAILED ] 19 tests, listed below: [ FAILED ] RestrictedTokenTest.ResultToken [ FAILED ] RestrictedTokenTest.DefaultDacl [ FAILED ] RestrictedTokenTest.DenySid [ FAILED ] RestrictedTokenTest.DenySids [ FAILED ] RestrictedTokenTest.DenySidsException [ FAILED ] RestrictedTokenTest.DenyOwnerSid [ FAILED ] RestrictedTokenTest.DeleteAllPrivileges [ FAILED ] RestrictedTokenTest.DeleteAllPrivilegesException [ FAILED ] RestrictedTokenTest.DeletePrivilege [ FAILED ] RestrictedTokenTest.AddRestrictingSid [ FAILED ] RestrictedTokenTest.AddRestrictingSidCurrentUser [ FAILED ] RestrictedTokenTest.AddRestrictingSidLogonSession [ FAILED ] RestrictedTokenTest.AddMultipleRestrictingSids [ FAILED ] RestrictedTokenTest.AddAllSidToRestrictingSids [ FAILED ] ServiceResolverTest.PatchesServices [ FAILED ] JobTest.TestCreation [ FAILED ] JobTest.TestDetach [ FAILED ] JobTest.TestExceptions [ FAILED ] JobTest.ProcessInJob 19 FAILED TESTS