pgbackrest.git / summary / log / commit / refs

commit    f1e8e49fa933dd0f5dfab446f511ac010eb4d236
Author:   David Steele <david@pgmasters.net>
Date:     Fri Sep 23 21:00:58 2022 +0000

    Use large error/log buffers in test harness.
    
    Ninja produces quite a bit of output so error messages are often truncated by the default error/log buffers. Use large buffers in the test harness to capture the error even when there is a lot of output.
    
    Ninja has introduced a --quiet option, but it is currently too new to be in any of our test distributions.


test/src/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/src/meson.build b/test/src/meson.build index 365cb69fc..eef1dd8f2 100644 --- a/test/src/meson.build +++ b/test/src/meson.build @@ -56,6 +56,11 @@ executable( test_help_auto_c_inc, test_parse_auto_c_inc, include_directories: include_directories('.', '../../src'), + c_args: [ + # Use large buffer sizes to capture large error/log outputs + '-DERROR_MESSAGE_BUFFER_SIZE=262144', + '-DLOG_BUFFER_SIZE=262144', + ], dependencies: [ lib_bz2, lib_yaml, [parent: cd8db7d9e53e]