Skip to content

Commit ede6bf8

Browse files
committed
More prettifying
1 parent 2586f4b commit ede6bf8

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,33 @@ jobs:
153153
LLVM_VER=`clang --version | head -n1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | cut -d. -f1`
154154
echo "Using LLVM version $LLVM_VER"
155155
156+
# Merge the profiles gathered
156157
cd build
157158
llvm-profdata-$LLVM_VER merge -sparse coverage-*.profraw -o coverage.profdata
158159
159160
# Output HTML, for archiving and browsing later
160-
llvm-cov-$LLVM_VER show -instr-profile=coverage.profdata -object ./pcre2test -object ./pcre2grep -object ./pcre2posix_test -format=html -output-dir=coverage-report -show-line-counts-or-regions -show-branches=percent
161+
llvm-cov-$LLVM_VER show \
162+
-format=html -output-dir=coverage-report -show-line-counts-or-regions -show-branches=percent \
163+
-instr-profile=coverage.profdata \
164+
./pcre2test -object ./pcre2grep -object ./pcre2posix_test -object ./pcre2_jit_test \
165+
../src/
161166
162167
# Output LCOV-compatible output, for downstream tools
163-
llvm-cov-$LLVM_VER export -instr-profile=coverage.profdata -object ./pcre2test -object ./pcre2grep -object ./pcre2posix_test -format=lcov > ./coverage-lcov.info
168+
llvm-cov-$LLVM_VER export \
169+
-format=lcov \
170+
-instr-profile=coverage.profdata \
171+
./pcre2test -object ./pcre2grep -object ./pcre2posix_test -object ./pcre2_jit_test \
172+
../src/ \
173+
> ./coverage-lcov.info
164174
165175
# Output text summary to build log
166-
llvm-cov-$LLVM_VER report -instr-profile=coverage.profdata -object ./pcre2test -object ./pcre2grep -object ./pcre2posix_test >> "$GITHUB_STEP_SUMMARY"
176+
echo '```' > "$GITHUB_STEP_SUMMARY"
177+
llvm-cov-$LLVM_VER report \
178+
-instr-profile=coverage.profdata \
179+
./pcre2test -object ./pcre2grep -object ./pcre2posix_test -object ./pcre2_jit_test \
180+
../src/ \
181+
>> "$GITHUB_STEP_SUMMARY"
182+
echo '```' >> "$GITHUB_STEP_SUMMARY"
167183
168184
- name: Upload report
169185
uses: actions/upload-artifact@v4

src/pcre2_compile.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10830,6 +10830,11 @@ if (errorcode == 0 && (optim_flags & PCRE2_OPTIM_AUTO_POSSESS) != 0)
1083010830

1083110831
if (errorcode != 0) goto HAD_CB_ERROR;
1083210832

10833+
if (errorcode == 500)
10834+
{
10835+
fprintf(stderr, "LETS SEE IF THIS GETS PRINTED");
10836+
}
10837+
1083310838
/* Successful compile. If the anchored option was not passed, set it if
1083410839
we can determine that the pattern is anchored by virtue of ^ characters or \A
1083510840
or anything else, such as starting with non-atomic .* when DOTALL is set and

0 commit comments

Comments
 (0)