Commit de3bff2
committed
Fix install guard glob check and tighten Docker ldd verification
Three follow-up cleanups from re-reviewing the previous three fix commits:
1. ci.yml install guard. The previous guard used
! ls /usr/bin/clang-format-diff-* 2>/dev/null | head -1
which always evaluated as "tool present" because the pipeline exit
code is dominated by `head` (returns 0 even on empty input). The
guard would never trip even when no clang-format-diff binary
existed; the fast-fail intent was lost (the runtime DIFFCMD lookup
would still catch it, but later in the workflow). Replace with
`compgen -G` which actually fails on a glob miss.
2. Dockerfile ldd verification. `ldd` returns 0 even when shared
libraries are reported as "not found", so the previous step proved
nothing. Grep for "not found" and exit 1 on hit. Also clarify the
slang-static-by-default note since the libslang*.so* glob may
legitimately match nothing.
3. fuzz_sdc.cpp had an unused <cstring> include left over from an
earlier draft. Remove it.
No regression -- ctest 504/504 still passes.1 parent bc04244 commit de3bff2
3 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
54 | | - | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
0 commit comments