Commit 06f9f9b
fix: use platform-appropriate absolute paths in path fallback tests
The fallback tests used hardcoded Unix paths (/home/user/agents/ctf.md)
which are not recognised as absolute on Windows by Path::is_absolute()
(no drive letter). Replace with tempfile::TempDir which produces real
absolute paths on any platform.
This keeps normalize_relative_path clean — no platform-specific hacks
needed — while making the tests genuinely cross-platform.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7d0e541 commit 06f9f9b
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
| 1223 | + | |
1224 | 1224 | | |
1225 | | - | |
1226 | | - | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1227 | 1231 | | |
1228 | 1232 | | |
1229 | 1233 | | |
1230 | 1234 | | |
1231 | 1235 | | |
1232 | | - | |
1233 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1234 | 1239 | | |
1235 | 1240 | | |
1236 | 1241 | | |
| |||
0 commit comments