Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

logging_unittest aborted on cygwin #659

@fd00

Description

@fd00

version: 0.5.0
platform: cygwin

    Start 1: demangle
1/7 Test #1: demangle .........................   Passed    0.16 sec
    Start 2: logging
2/7 Test #2: logging ..........................Subprocess aborted***Exception:   2.37 sec
    Start 3: stl_logging
3/7 Test #3: stl_logging ......................   Passed    0.08 sec
    Start 4: cmake_package_config_init
4/7 Test #4: cmake_package_config_init ........   Passed    0.22 sec
    Start 5: cmake_package_config_generate
5/7 Test #5: cmake_package_config_generate ....   Passed    2.67 sec
    Start 6: cmake_package_config_build
6/7 Test #6: cmake_package_config_build .......   Passed    2.21 sec
    Start 7: cmake_package_config_cleanup
7/7 Test #7: cmake_package_config_cleanup .....   Passed    0.10 sec

86% tests passed, 1 tests failed out of 7

Total Test time (real) =   8.10 sec

The following tests FAILED:
          2 - logging (Subprocess aborted)
Errors while running CTest
$ ./logging_unittest.exe
F20210527 17:09:57.622290    16 logging_unittest.cc:300] unexpected new
*** Check failure stack trace: ***
F00000000 00:00:00.000000    16 logging_unittest.cc:453] RAW: Check false failed: failure 1
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654676    16 logging_unittest.cc:615] CHECK_STRNE failed: __null != __null ( vs. )
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654676    16 logging_unittest.cc:615] CHECK_STRNE failed: __null != __null ( vs. )F20210527 17:09:57.654753    16 logging_unittest.cc:616] CHECK_STRNE failed: "this" != "this" (this vs. this)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654676    16 logging_unittest.cc:615] CHECK_STRNE failed: __null != __null ( vs. )F20210527 17:09:57.654753    16 logging_unittest.cc:616] CHECK_STRNE failed: "this" != "this" (this vs. this)F20210527 17:09:57.654830    16 logging_unittest.cc:617] CHECK_STREQ failed: (string("a")+"b").c_str() == "abc" (ab vs. abc)
*** Check failure stack trace: ***
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654676    16 logging_unittest.cc:615] CHECK_STRNE failed: __null != __null ( vs. )F20210527 17:09:57.654753    16 logging_unittest.cc:616] CHECK_STRNE failed: "this" != "this" (this vs. this)F20210527 17:09:57.654830    16 logging_unittest.cc:617] CHECK_STREQ failed: (string("a")+"b").c_str() == "abc" (ab vs. abc)F20210527 17:09:57.656746    16 logging_unittest.cc:632] Check failed: 'static_cast<void *>(NULL)' Must be non NULL
*** Check failure stack trace: ***
I20210527 17:09:58.887709    16 googletest.h:505] Diff was successful
==== Test setting log file basename
==== Test setting log file basename without timestamp and appending properly
I20210527 17:09:58.921180    16 logging_unittest.cc:728] message to new base, appending to preexisting file
==== Test setting log file basename and two processes writing - second should fail
I20210527 17:09:59.118984    16 logging_unittest.cc:751] message to new base, parent
Could not create log file: Resource temporarily unavailable
COULD NOT CREATE LOGFILE '20210527-170959.26179'!
I20210527 17:09:59.416618    16 logging_unittest.cc:757] message to new base, child - should only appear on STDERR not on the file
==== Test setting log file symlink
I20210527 17:09:59.605291    16 logging_unittest.cc:784] message to new symlink
==== Test setting log file extension
I20210527 17:09:59.862928    16 logging_unittest.cc:800] message to new extension
==== Test log wrapper
I20210527 17:10:00.097247    16 logging_unittest.cc:836] Send to wrapped logger
==== Test errno preservation
I20210527 17:10:00.097318    16 logging_unittest.cc:255] foo bar 10 3.4
E20210527 17:10:00.097391    16 logging_unittest.cc:259] Plog every 2, iteration 11: No error [0]
W20210527 17:10:00.097422    16 logging_unittest.cc:265] Log if every 5, iteration 11
I20210527 17:10:00.097445    16 logging_unittest.cc:268] Log if every 1, iteration 11
I20210527 17:10:00.097467    16 logging_unittest.cc:268] Log if every 1, iteration 12
E20210527 17:10:00.097492    16 logging_unittest.cc:269] Log if less than 3 every 2, iteration 12
E20210527 17:10:00.097513    16 logging_unittest.cc:259] Plog every 2, iteration 13: No such file or directory [2]
E20210527 17:10:00.097540    16 logging_unittest.cc:262] Log every 3, iteration 13
E20210527 17:10:00.097561    16 logging_unittest.cc:263] Log every 4, iteration 13
I20210527 17:10:00.097581    16 logging_unittest.cc:268] Log if every 1, iteration 13
I20210527 17:10:00.097604    16 logging_unittest.cc:268] Log if every 1, iteration 14
E20210527 17:10:00.097641    16 logging_unittest.cc:259] Plog every 2, iteration 15: Interrupted system call [4]
I20210527 17:10:00.097668    16 logging_unittest.cc:268] Log if every 1, iteration 15
E20210527 17:10:00.097688    16 logging_unittest.cc:262] Log every 3, iteration 16
W20210527 17:10:00.097712    16 logging_unittest.cc:265] Log if every 5, iteration 16
I20210527 17:10:00.097733    16 logging_unittest.cc:268] Log if every 1, iteration 16
E20210527 17:10:00.097754    16 logging_unittest.cc:259] Plog every 2, iteration 17: No such device or address [6]
E20210527 17:10:00.097779    16 logging_unittest.cc:263] Log every 4, iteration 17
I20210527 17:10:00.097800    16 logging_unittest.cc:268] Log if every 1, iteration 17
I20210527 17:10:00.097820    16 logging_unittest.cc:268] Log if every 1, iteration 18
E20210527 17:10:00.097842    16 logging_unittest.cc:259] Plog every 2, iteration 19: Exec format error [8]
E20210527 17:10:00.097868    16 logging_unittest.cc:262] Log every 3, iteration 19
I20210527 17:10:00.097893    16 logging_unittest.cc:268] Log if every 1, iteration 19
I20210527 17:10:00.097918    16 logging_unittest.cc:268] Log if every 1, iteration 20
W20210527 17:10:00.097939    16 logging_unittest.cc:272] log_if this
I20210527 17:10:00.097961    16 logging_unittest.cc:276] array
I20210527 17:10:00.097983    16 logging_unittest.cc:278] const array
E20210527 17:10:00.098006    16 logging_unittest.cc:280] foo 1000 0000001000 3e8
E20210527 17:10:00.098042    16 logging_unittest.cc:287] inner
E20210527 17:10:00.098031    16 logging_unittest.cc:284] outer
no prefix
==== Test log truncation
I20210527 17:10:00.104029    16 logging.cc:2364] Truncating /tmp/truncatefile to 10 bytes
I20210527 17:10:02.043427    16 logging.cc:2364] Truncating /tmp/truncatefile to 4096 bytes
I20210527 17:10:02.054441    16 logging.cc:2364] Truncating /tmp/truncatefile.link to 10 bytes
F20210527 17:09:57.654359    16 logging_unittest.cc:611] CHECK_STREQ failed: __null == "this" ( vs. this)F20210527 17:09:57.654500    16 logging_unittest.cc:612] CHECK_STREQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654546    16 logging_unittest.cc:613] CHECK_STRCASEEQ failed: __null == "siht" ( vs. siht)F20210527 17:09:57.654623    16 logging_unittest.cc:614] CHECK_STRCASEEQ failed: "this" == "siht" (this vs. siht)F20210527 17:09:57.654676    16 logging_unittest.cc:615] CHECK_STRNE failed: __null != __null ( vs. )F20210527 17:09:57.654753    16 logging_unittest.cc:616] CHECK_STRNE failed: "this" != "this" (this vs. this)F20210527 17:09:57.654830    16 logging_unittest.cc:617] CHECK_STREQ failed: (string("a")+"b").c_str() == "abc" (ab vs. abc)F20210527 17:09:57.656746    16 logging_unittest.cc:632] Check failed: 'static_cast<void *>(NULL)' Must be non NULL F20210527 17:10:02.054850    16 logging_unittest.cc:878] Check failed: statbuf.st_size == expect (10 vs. 30)
*** Check failure stack trace: ***
[1]    26178 abort (core dumped)  ./logging_unittest.exe
$

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions