From 396d7e105f3b6fea5dbd4a454c94a5391a732a2d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 26 Sep 2020 10:43:05 +0200 Subject: [PATCH] fish_tests: Break if unescape test failed Otherwise this prints millions of lines of errors, which just seems like overkill --- src/fish_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index ee25f3e9e..8ec7ef2c9 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -399,9 +399,11 @@ static void test_escape_crazy() { if (!unescaped_success) { err(L"Failed to unescape string <%ls>", escaped_string.c_str()); + break; } else if (unescaped_string != random_string) { err(L"Escaped and then unescaped string '%ls', but got back a different string '%ls'", random_string.c_str(), unescaped_string.c_str()); + break; } }