Comment 2 for bug 2073485

Revision history for this message
Mate Kukri (mkukri) wrote :

The basic.defines test is failing.

The following command is valid in bash.

RUN {{BPFTRACE}} -e "$(echo '#define _UNDERSCORE 314'; echo 'BEGIN { printf("%d\n", _UNDERSCORE); exit(); }')"

But in the test runner dash will be used, which cannot parse the above correctly. Instead I came up with the below replacement that parses in dash producing an equivalent result.

RUN {{BPFTRACE}} -e "$(printf '#define _UNDERSCORE 314\n'; printf 'BEGIN { printf("%%d\\n", _UNDERSCORE); exit(); }')"