From 12e6a41423737b3bf5898e47b83b506ed65b02ed Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 17 Apr 2022 12:05:32 +0200 Subject: [PATCH] Tests: Skip autosuggest_suggest_special under ASAN This crashes on Ubuntu 20.04, which Github Actions uses. --- src/fish_tests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 730cbde5c..812606676 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3638,6 +3638,11 @@ static void perform_one_completion_cd_test(const wcstring &command, const wcstri // Testing test_autosuggest_suggest_special, in particular for properly handling quotes and // backslashes. static void test_autosuggest_suggest_special() { +#if __SANITIZE_ADDRESS__ + // This manages to crash the asan on Ubuntu 20.04 + // So just skip it. + return; +#endif if (system("mkdir -p 'test/autosuggest_test/0foobar'")) err(L"mkdir failed"); if (system("mkdir -p 'test/autosuggest_test/1foo bar'")) err(L"mkdir failed"); if (system("mkdir -p 'test/autosuggest_test/2foo bar'")) err(L"mkdir failed");