aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-09-10 15:43:13 +0000
committerWerner Koch <[email protected]>2015-09-10 15:43:37 +0000
commitfbf24cd09abcdc3dec21db4114ab2db99ce21e4c (patch)
treeca8c1a0fdd751ab952a407cd8bf83983dbae6897 /tests
parentpo: Auto-update (diff)
downloadgnupg-fbf24cd09abcdc3dec21db4114ab2db99ce21e4c.tar.gz
gnupg-fbf24cd09abcdc3dec21db4114ab2db99ce21e4c.zip
g10: Improve portability of the new test driver.
* g10/test.c: Include stdio.h and stdlib.h. (verbose): New. (print_results): Rename to exit_tests. (main): Remove atexit and call exit_tests. Set verbose. (ASSERT, ABORT): Call exit_tests instead of exit. -- Calling exit from an exit handler is undefined behaviour. It works on Linux but other systems will hit an endless loop. That is indeed unfortunate but we can't do anything about it. Calling _exit() would be possible but that may lead to other problems. Thus we change to call a custom exit function :-(. Using "make check verbose=1" is supported by tests/openpgp and thus we add the same mechanism here. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions