bloomberg / bde

Basic Development Environment - a set of foundational C++ libraries used at Bloomberg.
Apache License 2.0
1.67k stars 316 forks source link

Test failure in ball_fileobserver2.t #285

Open greghogan opened 1 year ago

greghogan commented 1 year ago

bde 3.110.0.3 bde-tools 3.110.0.0

$ ./ball_fileobserver2.t 1 v v
TEST /tmp/guix-build-bloomberg-bde-3.110.0.3.drv-0/source/groups/bal/ball/ball_fileobserver2.t.cpp CASE 1

TESTING THRESHOLDS AND OUTPUT FORMATS
=====================================
Testing default output format.
Testing format with local time offset.
dos.str(): 
08NOV2022_15:27:47.168 32163:140310349770688 FATAL /tmp/guix-build-bloomberg-bde-3.110.0.3.drv-0/source/groups/bal/ball/ball_fileobserver2.t.cpp:3203 TestCategory log FATAL 
    os: 
08NOV2022_15:27:47.168 32163:140310349770688 FATAL /tmp/guix-build-bloomberg-bde-3.110.0.3.drv-0/source/groups/bal/ball/ball_fileobserver2.t.cpp:3203 TestCategory log FATAL 

Error /tmp/guix-build-bloomberg-bde-3.110.0.3.drv-0/source/groups/bal/ball/ball_fileobserver2.t.cpp(3218): dos.str() != os    (failed)
Testing file logging.
ERROR /tmp/guix-build-bloomberg-bde-3.110.0.3.drv-0/source/groups/bal/ball/ball_fileobserver2.cpp:280 Cannot open log file /bogus/path/foo: No such file or directory. File logging will be disabled!
Testing file logging with timestamp.
Testing '%%' in file name pattern.
Testing functors with the same format.
Testing functors with different formats.
Error, non-zero test status = 1.
mversche commented 1 year ago

This is also presumably an issue with the local time on the machine being UTC, the test assumes that the local time and non-local time values would be different.

mversche commented 1 year ago

Internal tracking 170729828