On Fri, Nov 23, 2018 at 12:56 PM, Tom de Vries <tdevr...@suse.de> wrote:
>
> When building libbacktrace, we typically use elf.c, and don't build pecoff.c,
> xcoff.c or unknown.c
>
> Add testcases that use unused format to ensure that we also build and
> test those on a typical development setup.
>
> Bootstrapped and reg-tested on x86_64.
>
> OK for trunk?
>
> Thanks,
> - Tom
>
> [libbacktrace] Add tests for unused formats
>
> 2018-11-23  Tom de Vries  <tdevr...@suse.de>
>
>         * configure.ac (NOT_HAVE_FORMAT_ELF, NOT_HAVE_FORMAT_PECOFF)
>         (NOT_HAVE_FORMAT_UNKNOWN, NOT_HAVE_FORMAT_XCOFF_32)
>         (NOT_HAVE_FORMAT_XCOFF_64): New AM_CONDITIONAL.
>         * configure: Regenerate.
>         * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
>         test_xcoff_64, test_pecoff and test_unknown.
>         * Makefile.in: Regenerate.
>         * test_format.c: New file.


Again it seems feasible to avoid GNU make features, and skip the
negative conditionals and just build the tests for all formats
including the one on the current system.  It's not worth adding the
complexity to avoid building the test.  Thanks.

Ian

Reply via email to