Files
magpie/internal/gui
yetone 5bd13b8025 gui: TestProviderSaveClientCert expects the system's separator (#5928)
On Windows the editor shows a saved certificate path as
"~\Downloads\magpie-laptop\client.pem", and the test wanted the "/"
form, so it was red on Windows since efb75ad1f (11-10). Windows CI only
compiles the tests, and 023a56373 still listed it today. The product is
right: provider.CertPath reads "~\" as the home folder, so the shown
value saves back to the same file. The test now wants the system's
separator and checks that read-back.

Run:
- win-run (xiaomi-gpu, Windows 11) go test -count=1 -run
  TestProviderSaveClientCert ./internal/gui: ok (red at main before,
  "shown true \"~\\Downloads\\magpie-laptop\\client.pem\"", #5928).
- mote: go test -count=1 -run 'TestProviderSaveClientCert|TestMTLS'
  ./internal/gui: ok. gofmt -l clean.
Not tried: the rest of the Windows reds in #6068; test-only change, no
full suite.
2026-11-16 12:13:44 +08:00
..
…
…
…