DescriptionCommandLineTest.ProgramQuotes: Fix crash-prone test.
Previously, this test would crash if the output wasn't quoted properly
(since it assumes that cmd_string.length() >= program_string.length() +
2). Instead, directly compare the string with the expected output. This
also guards against the possibility of mis-constructing the expected
string.
Committed: https://crrev.com/b937b24239d36fb4cdfeb98b2db818e4304dd8b4
Cr-Commit-Position: refs/heads/master@{#296350}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|