--
You received this message because you are subscribed to the Google Groups "Omaha Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omaha-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to omaha-...@googlegroups.com.
Visit this group at https://groups.google.com/group/omaha-discuss.
For more options, visit https://groups.google.com/d/optout.
As far as I know we are not doing anything special related to ACLs on most registry keys. One idea would be to inspect the permissions on the registry key and understand why the key can't be deleted. I don't understand how the key has ended up in this state. I am thinking that deleting the key manually would help before the unit test can be run again.
On Thu, Nov 17, 2016 at 12:31 AM, Nhan Nguyen <nttnh...@gmail.com> wrote:
@Sorin:
Do you have any suggestion for me to walkaround this case?In almost of unittest, this registry key is created and deleted after each unittest related to registry.
On Wednesday, November 16, 2016 at 1:30:14 AM UTC+7, Nhan Nguyen wrote:HiI'm getting in a trouble with unittest.
For more clearly, in the teardown function there is an error: RegKey::DeleteKey(kRegistryHiveOverrideRoot, true) failed with error 0x80070005void RegistryProtectedTest::TearDown() {RestoreRegistryHives();ASSERT_SUCCEEDED(RegKey::DeleteKey(hive_override_key_name_, true));}The assertion is failed here.I figured out that I have no access right toHKEY_CURRENT_USER\SOFTWARE\CompanyName\Update\UnitTest\HKCU\Software\Microsoft\Windows\CurrentVersion\Runso I even cannot delete it manually (directly in registry) (ERROR: Cannot Delete Run: Error while deleting key.)I run unittest with admin privileges.Any hints for me to pass this case?
--
You received this message because you are subscribed to the Google Groups "Omaha Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omaha-discus...@googlegroups.com.
There's nothing special with key's permission or key's owner.
I used psexec to delete the key manually. And the key was deleted successfully.
However in the next run of omaha_unittest, the key is created and cannot be deleted as above description again.
So I cannot guess what is wrong in this case.
Maybe the key is occupied by unknown running process, so I cannot delete it manually?
Any idea?
To unsubscribe from this group and stop receiving emails from it, send an email to omaha-discuss+unsubscribe@googlegroups.com.