Units tests failing...

175 views
Skip to first unread message

Zapbbx

unread,
Sep 23, 2011, 2:08:17 AM9/23/11
to Omaha Discuss
scons: Reading SConscript files ...
Using precompiled headers.
Building versions: 1.3.23.0
python C:\omaha\tools\proxy_clsid_utils.py
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: scons-out
Output "install_self_no_xml_parser_unittest.exe" to scons-out\dbg-win
\test_output\install_self_no_xml_parser_unittest.out.txt
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from RegistryProtectedTest
[ RUN ] RegistryProtectedTest.InstallOmaha_XmlParserNotPresent
C:\omaha/testing/unittest_debug_helper.h(74): error: Failed
ASSERT in common\config_manager.cc(220): (((HRESULT)(GetDir(0x001c,
CString(L"OmahaCompanyName" L"\\" L"Update"), false, &path))) >= 0);
""
C:\omaha/testing/unittest_debug_helper.h(74): error: Failed
ASSERT in setup\setup.cc(1003): !official_path.IsEmpty(); ""
C:\omaha/testing/unittest_debug_helper.h(74): error: Failed
ASSERT in common\config_manager.cc(229): (((HRESULT)(GetDir(0x001c,
CString(L"OmahaCompanyName" L"\\" L"Update"), true, &path))) >= 0); ""
C:\omaha/testing/unittest_debug_helper.h(74): error: Failed
ASSERT in common\config_manager.cc(229): (((HRESULT)(GetDir(0x001c,
CString(L"OmahaCompanyName" L"\\" L"Update"), true, &path))) >= 0); ""
client\install_self_unittest_no_xml_parser.cc(74): error: Value of:
install_self::internal::DoInstallSelf(false, false, false, false,
&extra_code1)
Actual: -2147024894
Expected: ((HRESULT) (((unsigned long)(1)<<31) | ((unsigned long)
(4)<<16) | ((unsigned long)(0x704))) )
Which is: -2147219708
client\install_self_unittest_no_xml_parser.cc(75): error: Value of:
extra_code1
Actual: 257
Expected: 0
[ FAILED ] RegistryProtectedTest.InstallOmaha_XmlParserNotPresent
(31 ms)
[ RUN ]
RegistryProtectedTest.CheckSystemRequirements_XmlParserNotPresent
client\install_self_unittest_no_xml_parser.cc(87): error: Value of:
install_self::internal::CheckSystemRequirements()
Actual: 0
Expected: ((HRESULT) (((unsigned long)(1)<<31) | ((unsigned long)
(4)<<16) | ((unsigned long)(0x704))) )
Which is: -2147219708
[ FAILED ]
RegistryProtectedTest.CheckSystemRequirements_XmlParserNotPresent (0
ms)
[ RUN ] RegistryProtectedTest.HasXmlParser_NotPresent
client\install_self_unittest_no_xml_parser.cc(97): error: Value of:
install_self::internal::HasXmlParser()
Actual: true
Expected: false
[ FAILED ] RegistryProtectedTest.HasXmlParser_NotPresent (0 ms)
[----------] 3 tests from RegistryProtectedTest (31 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (31 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] RegistryProtectedTest.InstallOmaha_XmlParserNotPresent
[ FAILED ]
RegistryProtectedTest.CheckSystemRequirements_XmlParserNotPresent
[ FAILED ] RegistryProtectedTest.HasXmlParser_NotPresent

3 FAILED TESTS

scons: building terminated because of errors.

any ideas?

Vinit

unread,
Aug 23, 2012, 1:41:02 PM8/23/12
to omaha-...@googlegroups.com
I'm receiving similar errors. Any update on this issue in the past year?

Stile

unread,
Sep 25, 2012, 11:13:15 AM9/25/12
to omaha-...@googlegroups.com
Running in elevated context (as admin) makes those 3 tests pass

ji...@tagsys.org

unread,
Aug 1, 2013, 11:34:13 AM8/1/13
to omaha-...@googlegroups.com
I got the same issue about the RegistryProtectedTest while building omaha. 
 ran the script from a regular command prompt and another as administrator and obtained the same results. any suggestions? 

-amos

在 2012年9月25日星期二UTC+8下午11时13分15秒,Stile写道:
Reply all
Reply to author
Forward
0 new messages