Commit 4e54e3c
fix: use absolute TESTING_DIR and reset file in benchmark tests
- Change TESTING_DIR to Path(__file__).parent.parent / "testing" so all
testing/ paths are absolute and CWD-independent
- Reset file to unformatted bytes at start of "reformats" test bodies
and compare against MAIN_C.read_bytes() to handle pytest-codspeed
calling benchmark bodies multiple times per test invocation
Agent-Logs-Url: https://github.com/cpp-linter/cpp-linter-hooks/sessions/e6f1960a-f8fc-4507-8baa-2b659f052346
Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>1 parent 755b139 commit 4e54e3c
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
0 commit comments