From 5068d34c08f951a7ea6257d305a1627b09a95817 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 19:44:55 +0200 Subject: Adding upstream version 0.11.1. Signed-off-by: Daniel Baumann --- ...sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/expected/test_sessions.sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out (limited to 'test/expected/test_sessions.sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out') diff --git a/test/expected/test_sessions.sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out b/test/expected/test_sessions.sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out new file mode 100644 index 0000000..adef6fa --- /dev/null +++ b/test/expected/test_sessions.sh_6d87ff483d5785c58fb271a405ff1c35e4f83cd9.out @@ -0,0 +1,36 @@ +#!lnav -Nf +# This file is an export of an lnav session. You can type +# '|/path/to/this/file' in lnav to execute this file and +# restore the state of the session. + +;SELECT raise_error('This session export was made with a newer version of lnav, please upgrade to ' || '0.11.1' || ' or later') + WHERE lnav_version() < '0.11.1' COLLATE naturalcase + +# The files loaded into the session were: + + +# Set this environment variable to override this value or edit this script. +;INSERT OR IGNORE INTO environ (name, value) VALUES ('LOG_DIR_0', '{test_dir}') +:open $LOG_DIR_0/support-dump/logfile_access_log.0 +:open $LOG_DIR_0/support-dump/logfile_access_log.1 + +:rebuild + + +# The following SQL statements will restore the bookmarks, +# comments, and tags that were added in the session. + +;SELECT total_changes() AS before_mark_changes +;UPDATE all_logs SET log_mark = 1, log_comment = NULL, log_tags = NULL WHERE log_time_msecs = 1248130769000 AND log_format = 'access_log' AND log_line_hash = 'v1:b05c1bdfe75cde41e151c89087e31951' + +;SELECT 1 - (total_changes() - $before_mark_changes) AS failed_mark_changes +;SELECT echoln(printf('%sERROR%s: failed to restore %d bookmarks', + $ansi_red, $ansi_norm, $failed_mark_changes)) + WHERE $failed_mark_changes != 0 + + +# The following commands will restore the state of the LOG view. + +:switch-to-view log +:hide-file */support-dump/logfile_access_log.1 +:goto 1 -- cgit v1.2.3