Skip to content

Commit 5921f9c

Browse files
[SYCL][E2E] Fix Config/allowlist.cpp to correctly parse '+' in device name (#12695)
The CPU name of SPR contains a special symbol, '+', which Config/allowlist does not parse correctly and thus, generates a wrong regex string. This causes this test case to fail on SPR.
1 parent 4478292 commit 5921f9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/test-e2e/Config/allowlist.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ static void replaceSpecialCharacters(std::string &Str) {
2424
std::replace_if(
2525
Str.begin(), Str.end(),
2626
[](const char Sym) {
27-
return '(' == Sym || ')' == Sym || '[' == Sym || ']' == Sym;
27+
return '(' == Sym || ')' == Sym || '[' == Sym || ']' == Sym ||
28+
'+' == Sym;
2829
},
2930
'.');
3031
}

0 commit comments

Comments
 (0)