diff --git a/sycl/test-e2e/Config/allowlist.cpp b/sycl/test-e2e/Config/allowlist.cpp index d7077267d130e..fce4138f3180b 100644 --- a/sycl/test-e2e/Config/allowlist.cpp +++ b/sycl/test-e2e/Config/allowlist.cpp @@ -23,7 +23,10 @@ static void replaceSpecialCharacters(std::string &Str) { // Replace common special symbols with '.' which matches to any character std::replace_if( Str.begin(), Str.end(), - [](const char Sym) { return '(' == Sym || ')' == Sym; }, '.'); + [](const char Sym) { + return '(' == Sym || ')' == Sym || '[' == Sym || ']' == Sym; + }, + '.'); } int main() {