Boost logo

Boost Testing :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2005-05-10 19:30:39


At Wednesday 2005-05-04 05:25, Beman Dawes wrote:

>"Victor A. Wagner Jr." <vawjr_at_[hidden]> wrote in message
>news:6.2.0.14.2.20050503192915.08864920_at_mail.rudbek.com...
> > Well, I found out why the tests are failing (kinda) ... this is run
> > manually with outputting timestamps before and after in a batch file.
> > The difference is 10min 48seconds
> > I don't think the build_monitor waits that long.
>
>Not sure why the timestamps show that much difference. The apparent bug this
>test is detecting is network related, so it is barely possible network
>issues are causing a long pause, but that seems very unlikely.

you've not played with the networks on Windows enough, lol.

> > C:\Projects\boost\libs/filesystem/test/operations_test.cpp(125): test
> > !fs::exists( fs::path( "//share-not/foo", fs::native ) ) failed in
> > function: 'int __cdecl test_main(int,char *
>
>This could be a real Boost.Filesystem bug. That is assuming there is no
>\\share-not\foo on your network!
>
>The bug could be that the call to GetFileAttributesA() at line 352 of
>src/operations_posix_windows.cpp is failing as expected, but the error being
>returned is something unexpected.
>
>This sort of bug doesn't happen with POSIX, because it documents the
>possible errors returned by each function. Windows doesn't document exact
>errors, so they have to be determined experimentally. A serious pain. What
>version of Windows are you running? Is there anything odd about your network
>support? Is file and printer sharing enabled? Are you running a firewall
>that could be causing some unexpected error return on attempts to access the
>network?
>
>Could you please do this:
>
>* Uncomment line 84 of operations_posix_windows.cpp so it reads #include
><iostream>
>* After line 355 in operations_posix_windows.cpp, which reads UINT err =
>::GetLastError();, add a line:
>
> std::cout << "error " << err << '\n';
>
>* Compile and run operations_test, and let me know the error code being
>returned just before the (125) error message above displays.

done

T:\Projects\boost\libs\filesystem\test>bjam operations_test
...patience...
...found 747 targets...
...updating 13 targets...
vc-C++
..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\operations_posix_windows.obj
operations_posix_windows.cpp
vc-Archive
..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\libboost_filesystem-vc71-mt-gd-1_33.lib
Microsoft (R) Library Manager Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.

"..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\exception.obj"
"..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\operations_posix_windows.obj"
"..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\path_posix_windows.obj"
"..\..\..\bin\boost\libs\filesystem\build\libboost_filesystem.lib\vc-7_1\debug\threading-multi\convenience.obj"
MkDir1 ..\..\..\bin\boost\libs\filesystem\test
MkDir1 ..\..\..\bin\boost\libs\filesystem\test\operations_test.test
MkDir1 ..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1
MkDir1
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug
MkDir1
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi
vc-C++
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi\operations_test.obj
operations_test.cpp
vc-Link
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi\operations_test.exe
execute-test
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi\operations_test.run
         1 file(s) copied.
**passed**
..\..\..\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi\operations_test.test
...updated 13 targets...
========================================================================================================
and the output
T:\Projects\boost\bin\boost\libs\filesystem\test\operations_test.test\vc-7_1\debug\threading-multi>type
operations_test.output
Platform is Windows
initial_path().string() is
   "T:/Projects/boost/libs/filesystem/test"
initial_path().native_file_string() is
   "T:\Projects\boost\libs\filesystem\test"
error 53
error 2
error 2
UTC should currently be about Wed May 11 00:20:38 2005

Local time should currently be about Tue May 10 17:20:38 2005

Year is 105
Change year to 104
Get new value
Local time one year ago should currently be about Mon May 10 17:20:38 2004

Now get time difference
Time difference is : 3.1536e+007
Reset to current time
And check that
Local time should currently be about Tue May 10 17:20:38 2005

error 2
error 2
error 3
error 2
error 2
error 2
error 2
error 2
error 3
error 2
error 2
error 2
error 3
error 2
error 2
error 2
error 2
error 2
error 2
error 2
error 3
error 2
error 2
error 2
error 2

**** no errors detected

EXIT STATUS: 0

>Thanks,
>
>--Beman
>
>
>
>_______________________________________________
>Boost-Testing mailing list
>Boost-Testing_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-testing

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


Boost-testing list run by mbergal at meta-comm.com