Skip to content

Commit c85e574

Browse files
committed
[tests] another test of capturing stderr
1 parent 42d9bec commit c85e574

4 files changed

Lines changed: 11 additions & 0 deletions

test/expected/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,6 +1736,8 @@ dist_noinst_DATA = \
17361736
test_text_file.sh_68d8596eab1758ef9299e73231584b7697e91e3b.out \
17371737
test_text_file.sh_6a24078983cf1b7a80b6fb65d5186cd125498136.err \
17381738
test_text_file.sh_6a24078983cf1b7a80b6fb65d5186cd125498136.out \
1739+
test_text_file.sh_70358c12914b597f2639bf59ee29ec818816bf72.err \
1740+
test_text_file.sh_70358c12914b597f2639bf59ee29ec818816bf72.out \
17391741
test_text_file.sh_73f69c883f60761bff9f8874f61d21a189e92912.err \
17401742
test_text_file.sh_73f69c883f60761bff9f8874f61d21a189e92912.out \
17411743
test_text_file.sh_786c7262f977201af36b0e69ba1a2aba130bbb06.err \

test/expected/test_text_file.sh_70358c12914b597f2639bf59ee29ec818816bf72.err

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
info message one
2+
info message two
3+
error: something went wrong
4+
warning: be careful

test/test_text_file.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ run_cap_test ${lnav_test} -n \
218218

219219
run_cap_test ${lnav_test} -n ${test_dir}/textfile_ctrl.0
220220

221+
# Test that error/warning bookmarks are set for piper text files
222+
run_cap_test ${lnav_test} -n \
223+
-e "bash ${test_dir}/textfile_stderr_levels.sh" \
224+
-c ':goto 0'
225+
221226
# Test that error/warning bookmarks are set for piper text files
222227
run_cap_test ${lnav_test} -n \
223228
-e "bash ${test_dir}/textfile_stderr_levels.sh" \

0 commit comments

Comments
 (0)