From 5d5f0ce8c3d4c0c0e83d1e33597748a9a2212bcb Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Sat, 22 Mar 2025 16:32:30 +0800 Subject: Fix doc for `meson test --print-errorlogs` [skip ci] --- docs/markdown/Unit-tests.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md index 5a7b19940..e89f393a2 100644 --- a/docs/markdown/Unit-tests.md +++ b/docs/markdown/Unit-tests.md @@ -266,6 +266,11 @@ be specified *(added 0.52.0)*: $ meson test --gdb --gdb-path /path/to/gdb testname ``` +Meson can print the error logs produced by failing tests via the +`--print-errorlogs` option. The logs can include stack traces and environmental +variables. This is especially useful when you run the tests on GitHub, Travis, +Jenkins and the like: + ```console $ meson test --print-errorlogs ``` @@ -280,11 +285,6 @@ shell is spawned if it fails *(added 1.5.0)*: $ meson test --interactive testname ``` -Meson will report the output produced by the failing tests along with -other useful information as the environmental variables. This is -useful, for example, when you run the tests on Travis-CI, Jenkins and -the like. - By default, the output from tests will be limited to the last 100 lines. The maximum number of lines to show can be configured with the `--max-lines` option *(added 1.5.0)*: -- cgit v1.2.3