Skip to content

test failure: regexp_capture with \n fails #1048

@leahneukirchen

Description

@leahneukirchen

lnav version
v0.11.0
(actually this is broken on v0.10.1 already)

Describe the bug
The test in test_sql.sh fails:

run_test ${lnav_test} -n \
    -c ";SELECT jget(rc.content, '/ts') AS ts FROM lnav_file, regexp_capture(lnav_file.content, '.*\n') as rc" \
    -c ":write-csv-to -" \
    logfile_json.json.gz

Replacing the regexp with .*} fixes the test, I assume the \n isn't parsed correctly. But .*$ doesn't work either.

To Reproduce
Steps to reproduce the behavior:

Run Test suite on Linux x86_64, glibc 2.32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions