Commit 235449a
committed
tests/e2e/188: the "did not rerun" assertion could not fail
It read `grep -q "GENERATE" b3.log && FAIL`, on the assumption that ninja's
description line for the edge reaches that log. It does not. `mcpp build`
passes `--quiet` to ninja whenever it is not `--verbose` and surfaces ninja's
captured stdout only on failure, so a from-scratch build -- which
unquestionably runs the action -- prints no such line either. The grep never
matched, and the check could not fail whether the action reran or not.
Found while designing the depfile test, whose first draft copied this
convention and would have inherited the same emptiness.
The generated file's modification time measures the thing being asserted
directly: the action rewrites it whenever it runs. Verified in both directions
against the same binary -- unchanged after touching an unrelated source, and
the assertion fails naming both timestamps when the touched file is a declared
input of the action instead.1 parent ebcbf78 commit 235449a
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
125 | 138 | | |
| 139 | + | |
126 | 140 | | |
127 | | - | |
128 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
| |||
0 commit comments