[Mono-list] Problems running nunit tests inside sandbox
Pacho Ramos
pacho at gentoo.org
Mon Sep 26 08:38:07 EDT 2011
On Gentoo we compile packages inside a sandbox to prevent unwanted
accesses to real filesystem. The problem is that packages running nunit
tests fails with errors like:
Unhandled Exception: System.Security.SecurityException: No access to the
given
key
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir, Boolean is_volatile) [0x00057] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:138
at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey,
System.String basedir) [0x00000] in <filename unknown>:0
at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey
rkey,
Boolean createNonExisting) [0x00096] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:401
at Microsoft.Win32.UnixRegistryApi.OpenSubKey
(Microsoft.Win32.RegistryKey
rkey, System.String keyname, Boolean writable) [0x00000] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/class/corlib/Microsoft.Win32/UnixRegistryApi.cs:842
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean
writable) [0x0001e] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:278
at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name)
[0x00000] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/class/corlib/Microsoft.Win32/RegistryKey.cs:262
at (wrapper remoting-invoke-with-check)
Microsoft.Win32.RegistryKey:OpenSubKey (string)
at NUnit.Util.SettingsService.ConvertLegacySettings () [0x00000] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/nunit24/ClientUtilities/util/Services/SettingsService.cs:53
at NUnit.Util.SettingsService..ctor () [0x00053] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/nunit24/ClientUtilities/util/Services/SettingsService.cs:35
at NUnit.ConsoleRunner.Runner.Main (System.String[] args) [0x000c6] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/nunit24/ConsoleRunner/nunit-console/Runner.cs:47
at NUnit.ConsoleRunner.Class1.Main (System.String[] args) [0x00000] in
/mnt/gen2/tmpdir/portage/dev-lang/mono-2.10.2/work/mono-2.10.2/mcs/nunit24/ConsoleRunner/nunit-console-exe/Class1.cs:22
make[3]: *** [test] Error 1
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
After reporting to:
https://bugzilla.gnome.org/show_bug.cgi?id=653195
banshee upstream thought this was more like a nunit problem:
https://bugzilla.gnome.org/show_bug.cgi?id=653195#c5
Can you help me with this?
Thanks a lot :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20110926/620e8913/attachment.bin
More information about the Mono-list
mailing list