From 4d8de32a164934adcca441e4f538b679c919bbe4 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 17 Apr 2022 13:35:09 +0200 Subject: [PATCH] Tests: Skip autosuggest_special harder For some reason this still crashed? WTF? --- src/fish_tests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 812606676..325e86eaf 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3638,11 +3638,9 @@ 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 +#ifndef __SANITIZE_ADDRESS__ 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"); @@ -3752,6 +3750,7 @@ static void test_autosuggest_suggest_special() { parser_t::principal_parser().vars().remove(L"HOME", ENV_LOCAL | ENV_EXPORT); popd(); +#endif //ndef SANITIZE_ADDRESS } static void perform_one_autosuggestion_should_ignore_test(const wcstring &command, long line) {