Skip to content

Commit 4bd314c

Browse files
committed
[tests] update TUI captures
1 parent 712f9a7 commit 4bd314c

8 files changed

Lines changed: 1216 additions & 1409 deletions

File tree

src/base/lnav_log.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ log_write_ring_to(int fd)
413413
static void
414414
sigabrt(int sig, siginfo_t* info, void* ctx)
415415
{
416+
auto dump_crash = getenv("DUMP_CRASH") != nullptr;
416417
char crash_path[1024], latest_crash_path[1024];
417418
int fd;
418419
#ifdef HAVE_EXECINFO_H
@@ -512,7 +513,7 @@ sigabrt(int sig, siginfo_t* info, void* ctx)
512513
log_ring.lr_frag_end - log_ring.lr_frag_start);
513514
}
514515
write(fd, log_ring.lr_data, log_ring.lr_length);
515-
if (getenv("DUMP_CRASH") != nullptr) {
516+
if (dump_crash) {
516517
char buffer[1024];
517518
int rc;
518519

@@ -560,7 +561,7 @@ Or, you can send the following file to {PACKAGE_BUGREPORT}:
560561
fmt::arg("crash_path", crash_path));
561562

562563
#ifndef ATTACH_ON_SIGNAL
563-
if (isatty(STDIN_FILENO)) {
564+
if (!dump_crash && isatty(STDIN_FILENO)) {
564565
char response;
565566

566567
fprintf(stderr, "\nWould you like to attach a debugger? (y/N) ");

test/scripty.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class child_term {
146146
unsetenv("TERM_PROGRAM");
147147
unsetenv("COLORTERM");
148148
setenv("IN_SCRIPTY", "1", 1);
149+
setenv("DUMP_CRASH", "1", 1);
149150
setenv("TERM", term_type, 1);
150151
} else {
151152
this->ct_master.non_blocking();

test/tui-captures/tui_crumbs.0

Lines changed: 276 additions & 191 deletions
Large diffs are not rendered by default.

test/tui-captures/tui_echo.0

Lines changed: 160 additions & 450 deletions
Large diffs are not rendered by default.

test/tui-captures/tui_filters.0

Lines changed: 275 additions & 361 deletions
Large diffs are not rendered by default.

test/tui-captures/tui_filters.1

Lines changed: 67 additions & 67 deletions
Large diffs are not rendered by default.

test/tui-captures/tui_help.0

Lines changed: 124 additions & 72 deletions
Large diffs are not rendered by default.

test/xpath_tui.0

Lines changed: 310 additions & 266 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)