fish_tests: Break if unescape test failed

Otherwise this prints millions of lines of errors, which just seems
like overkill
This commit is contained in:
Fabian Homborg 2020-09-26 10:43:05 +02:00
parent 06f6436943
commit 396d7e105f

View file

@ -399,9 +399,11 @@ static void test_escape_crazy() {
if (!unescaped_success) { if (!unescaped_success) {
err(L"Failed to unescape string <%ls>", escaped_string.c_str()); err(L"Failed to unescape string <%ls>", escaped_string.c_str());
break;
} else if (unescaped_string != random_string) { } else if (unescaped_string != random_string) {
err(L"Escaped and then unescaped string '%ls', but got back a different string '%ls'", err(L"Escaped and then unescaped string '%ls', but got back a different string '%ls'",
random_string.c_str(), unescaped_string.c_str()); random_string.c_str(), unescaped_string.c_str());
break;
} }
} }