Commit 6c38a6c
committed
Scrub invalid UTF-8 bytes from debuggee output in tests
setup_remote_debuggee reads lines from PTY and matches them against
regexps, but Regexp#=== raises ArgumentError when the line contains
invalid UTF-8 byte sequences. This has been causing random CI failures:
https://github.com/ruby/ruby/actions/runs/23754369209/job/69204936437
Use String#scrub to replace invalid bytes before matching.1 parent bad4d38 commit 6c38a6c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments