What steps will reproduce the problem?
1. Unzip the attached VS 2010 files.
2. Compile the relevant libkml* libraries.
3. Run the project for (libkmlbase_date_time_test) and
(libkmlbase_string_util_test) in Release and Debug mode.
What is the expected output? What do you see instead?
Everything runs fine, the library compiles, the examples work, but 2/71 tests
fail. The two tests that fail are: libkmlbase_date_time_test and
libkmlbase_string_util_test. Also, only one of them fail in debug model
(libkmlbase_date_time_test).
What version of the product are you using? On what operating system?
libkml-1.2.0
windows 7
visual studio 2010
I recompiled gtest, minizip, and uriparser in VS 2010 (the version of the
libraries used is the one provided with libkml-1.2.0). The lib and dll files
for expat and zlib-1.2.3 were used as is and did not require and recompilation
with VS 2010.
Did you run the unit test suite that comes with the project? Did all tests pass?
Yes, In Release mode, the test fails on item 1 and 2 below. In Debug mode, the
test fails ONLY on item 1 below.
ITEM 1: libkmlbase_date_time_test
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from DateTimeTest
[ RUN ] DateTimeTest.TestCreate
..\..\src\kml\base\date_time_test.cc(43): error: Value of: date_time_.get()
Actual: false
Expected: true
[ FAILED ] DateTimeTest.TestCreate
[ RUN ] DateTimeTest.TestBad
[ OK ] DateTimeTest.TestBad
[ RUN ] DateTimeTest.TestToTimeT
..\..\src\kml\base\date_time_test.cc(59): error: Value of:
DateTime::ToTimeT("2008-10-03T09:25:42Z")
Actual: 0
Expected: 1223025942
[ FAILED ] DateTimeTest.TestToTimeT
[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran.
[ PASSED ] 1 test.
[ FAILED ] 2 tests, listed below:
[ FAILED ] DateTimeTest.TestCreate
[ FAILED ] DateTimeTest.TestToTimeT
2 FAILED TESTS
ITEM 2: libkmlbase_string_util_test
[==========] Running 12 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 11 tests from StringUtilTest
[ RUN ] StringUtilTest.Testb2a_hex
..\..\src\kml\base\string_util_test.cc(39): error: Value of: strcmp(e, a)
Actual: -1
Expected: 0
[ FAILED ] StringUtilTest.Testb2a_hex
[ RUN ] StringUtilTest.TestBasicReplacements
[ OK ] StringUtilTest.TestBasicReplacements
[ RUN ] StringUtilTest.TestSplitStringUsing
[ OK ] StringUtilTest.TestSplitStringUsing
[ RUN ] StringUtilTest.TestFromString
[ OK ] StringUtilTest.TestFromString
[ RUN ] StringUtilTest.TestToString
[ OK ] StringUtilTest.TestToString
[ RUN ] StringUtilTest.TestEndsWith
[ OK ] StringUtilTest.TestEndsWith
[ RUN ] StringUtilTest.TestStringCaseEqual
[ OK ] StringUtilTest.TestStringCaseEqual
[ RUN ] StringUtilTest.TestStringToDouble
[ OK ] StringUtilTest.TestStringToDouble
[ RUN ] StringUtilTest.TestIsDecimalDoubleString
[ OK ] StringUtilTest.TestIsDecimalDoubleString
[ RUN ] StringUtilTest.TestSkipWhitespace
[ OK ] StringUtilTest.TestSkipWhitespace
[ RUN ] StringUtilTest.TestSplitQuotedUsing
[ OK ] StringUtilTest.TestSplitQuotedUsing
[----------] 1 test from StringUtiltest
[ RUN ] StringUtiltest.TestStringMapIterator
[ OK ] StringUtiltest.TestStringMapIterator
[----------] Global test environment tear-down
[==========] 12 tests from 2 test cases ran.
[ PASSED ] 11 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] StringUtilTest.Testb2a_hex
1 FAILED TEST
Please provide any additional information below.
I am attaching VS 2010 solution and project files. Just copy the msvc directory
and you should be good to go.
Original issue reported on code.google.com by achan...@gmail.com on 11 Sep 2011 at 10:36
Original issue reported on code.google.com by
achan...@gmail.com
on 11 Sep 2011 at 10:36Attachments: