0a3e8487a0
PipeCapture::OnReadable() has been almost completely re-written but this test is still failing thus: $ ./test_PipeCapture ... [ RUN ] PipeCaptureTest.MinimalBinaryCrash777973 test_PipeCapture.cc:313: Failure Expected: inputstr Of length: 27 To be equal to: capturedstr.raw() Of length: 26 With first binary difference: < 0x00000010 "...!......." A9 C2 A0 21 E2 95 9F E2 88 A9 C2 -- > 0x00000010 "...!......" A9 C2 A0 21 E2 95 9F E2 88 A9 [ FAILED ] PipeCaptureTest.MinimalBinaryCrash777973 (0 ms) ... The OnReadable() code specifically skips invalid bytes which aren't part of valid UTF-8 characters, because they can't be displayed to the user. The final C2 byte is the start of a multi-byte UTF-8 character, so on it's own is invalid. Therefore PipeCapture skips it. Update expected string accordingly. Now the test passes. Bug 777973 - Segmentation fault on bad disk |
||
---|---|---|
.. | ||
Makefile.am | ||
test_BlockSpecial.cc | ||
test_PipeCapture.cc | ||
test_dummy.cc |