Hi there,
I built gtest on three different machines after discovering it
yesterday. When I invoke `make check` I get three failures. The first
has been described elsewhere <
http://code.google.com/p/googletest/
issues/detail?id=9> and I have fixed that locally.
The second two are due to a race condition with certain file systems
(and are the same problem):
F
======================================================================
FAIL: testOutfile1 (__main__.GTestXMLOutFilesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test/gtest_xml_outfiles_test.py", line 95, in testOutfile1
self._TestOutFile(GTEST_OUTPUT_1_TEST, EXPECTED_XML_1)
File "./test/gtest_xml_outfiles_test.py", line 118, in _TestOutFile
output_file1)
AssertionError: /home/paj/tmp/tmpDl2enP/gtest_xml_outfile1_test_.xml
======================================================================
FAIL: testOutfile2 (__main__.GTestXMLOutFilesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test/gtest_xml_outfiles_test.py", line 98, in testOutfile2
self._TestOutFile(GTEST_OUTPUT_2_TEST, EXPECTED_XML_2)
File "./test/gtest_xml_outfiles_test.py", line 118, in _TestOutFile
output_file1)
AssertionError: /home/paj/tmp/tmpTD61Zm/gtest_xml_outfile2_test_.xml
----------------------------------------------------------------------
Ran 2 tests in 0.159s
FAILED (failures=2)
FAIL: test/gtest_xml_outfiles_test.py
According to these tests, the files have not (yet) been created on the
file system. However, running `ls` afterwards shows that they do
exist:
> ls -l /home/paj/tmp/tmpDl2enP/ /home/paj/tmp/tmpTD61Zm/
/home/paj/tmp/tmpDl2enP/:
total 12
drwxr-xr-x 2 paj 4096 2008-08-09 09:42 ./
drwxr-xr-x 38 paj 4096 2008-08-09 09:42 ../
-rw-r--r-- 1 paj 381 2008-08-09 09:42 lt-
gtest_xml_outfile1_test_.xml
/home/paj/tmp/tmpTD61Zm/:
total 12
drwxr-xr-x 2 paj 4096 2008-08-09 09:42 ./
drwxr-xr-x 38 paj 4096 2008-08-09 09:42 ../
-rw-r--r-- 1 paj 381 2008-08-09 09:42 lt-
gtest_xml_outfile2_test_.xml
This failure is on Linux gaspode 2.6.24-19-generic #1 SMP Wed Jun 18
14:43:41 UTC 2008 i686 GNU/Linux
Perhaps these checks should be performed in-memory, rather than
relying on a file system (c.f.
http://www.google.com/search?q=a-test-is-not-a-unit-test-if
;-) ).
Best;
--paj