Test case: lib/atf/libatf-c++/macros_test:detect_unused_tests
- Test program: /usr/tests/lib/atf/libatf-c++/macros_test
- Result: failed: Build of unused_test.cpp passed; unused test cases are not properly detected
- Start time: 2018-12-25T16:55:34.208160Z
- End time: 2018-12-25T16:56:28.669197Z
- Duration: 54.461s
- Execution context
Metadata
- allowed_architectures =
- allowed_platforms =
- description = Tests that defining an unused test case raises a warning (and thus an error)
- has_cleanup = false
- is_exclusive = false
- required_configs =
- required_disk_space = 0
- required_files =
- required_memory = 0
- required_programs =
- required_user =
- timeout = 300
Standard output
> /usr/local/bin/riscv64-unknown-freebsd13.0-g++ -O2 -DHAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c compiler_test.cpp
> /usr/local/bin/riscv64-unknown-freebsd13.0-g++ -O2 -DHAVE_CONFIG_H -I/usr/include -Wall -Werror -o test.o -c /usr/tests/lib/atf/libatf-c++/unused_test.cpp
Standard error
compiler_test.cpp:2:41: error: 'unused' defined but not used [-Werror=unused-variable]
#define define_unused static test_class unused
^~~~~~
compiler_test.cpp:3:1: note: in expansion of macro 'define_unused'
define_unused;
^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
/usr/local/bin/riscv64-unknown-freebsd13.0-g++ failed with exit code 1
Files left in work directory after failure: compiler_test.cpp, test.o