Skip to content

grepdiff: fails tests/grepdiff1 without pcre2 on musl #102

@hhoffstaette

Description

@hhoffstaette

When built --without-pcre2 on musl the log says:

FAIL: tests/grepdiff1/run-test
==============================

+ cat
+ /var/cache/distfiles/patchutils/src/grepdiff '\+a' diff
+ exit 1
FAIL tests/grepdiff1/run-test (exit status: 1)

More info when running the test:

$./src/grepdiff '\+a' ./test-arena/grepdiff1/diff
./src/grepdiff:Repetition not preceded by valid expression

Expected output when built on glibc or --with-pcre2:

$./src/grepdiff '\+a' ./test-arena/grepdiff1/diff                       
file1

Apparently this is a difference between glibc and musl's regex implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions