Skip to content

emv_debug_test fails due to mismatch of the paths when building on Arch Linux #2

@drygdryg

Description

@drygdryg

I tried to build emv-utils from Arch Linux AUR: https://aur.archlinux.org/packages/emv-utils-git

$ git clone https://aur.archlinux.org/emv-utils-git.git
$ cd emv-utils-git/
$ makepkg -si

and test #57 failed:

 1/78 Test #57: emv_debug_test .............................***Failed  Required regular expression not found. Regex=[\[APP\] asdf=1337[
]\[APP\] tests/emv_debug_test.c\[46\]: This is a trace message: DEADBEEF[
]
]  0.02 sec
[APP] asdf=1337
[APP] /usr/src/debug/emv-utils-git/emv-utils/tests/emv_debug_test.c[46]: This is a trace message: DEADBEEF

The problem is the mismatch of the paths: tests/emv_debug_test.c in the regex and /usr/src/debug/emv-utils-git/emv-utils/tests/emv_debug_test.c on my system.

Changing this line:

"\\[APP\\] tests/emv_debug_test\.c\\[46\\]: This is a trace message: DEADBEEF[\r\n]"

to

		"\\[APP\\] .*tests/emv_debug_test\.c\\[46\\]: This is a trace message: DEADBEEF[\r\n]"

solves this issue.

Is this the correct solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions