1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-18 10:01:07 +03:00

2 Commits

Author SHA1 Message Date
Bruno Haible
5c5e2eae1e execinfo tests: Strengthen tests.
* tests/test-execinfo.c (test_backtrace): Add an argument. Check the
return value of backtrace(). Check that backtrace_symbols_fd is defined.
Check the return value of backtrace_symbols().
(main): Test also the case of a short buffer.
* modules/execinfo-tests (Makefile.am): Verify that LIB_EXECINFO is
defined.
2024-05-12 12:29:38 +02:00
Collin Funk
06ff525438 execinfo: Add tests.
* modules/execinfo-tests: New file.
* tests/test-execinfo.c (test_backtrace): New function. Simply test that
the symbols defined in execinfo.h can be used.
(main): Use it.
2024-05-11 20:46:12 -07:00