Skip to content

Commit 9cde62e

Browse files
againullbader
authored andcommitted
[SYCL] Fix pointer checks in stream lit test
There were no checks for pointer values because they have different value for each run. But printed pointer values could contain value of the next CHECK ("545" in this case) and this causes failure of the lit test. Signed-off-by: Artur Gainullin <[email protected]>
1 parent ff15d51 commit 9cde62e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sycl/test/basic_tests/stream.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ int main() {
155155
Out << ConstPtr << sm::endl;
156156
auto multiPtr = private_ptr<int>(Ptr);
157157
Out << multiPtr << sm::endl;
158+
// CHECK-NEXT: 0x{{[0-9a-fA-F]*$}}
159+
// CHECK-NEXT: 0x{{[0-9a-fA-F]*$}}
160+
// CHECK-NEXT: 0x{{[0-9a-fA-F]*$}}
158161

159162
// Vectors
160163
vec<int, 1> f1(545);
@@ -168,7 +171,7 @@ int main() {
168171
Out << sm::dec << f4 << sm::endl;
169172
vec<float, 4> f5(542.3f, 645.3f, 771.6f, 1024.2f);
170173
Out << f5 << sm::endl;
171-
// CHECK: 545
174+
// CHECK-NEXT: 545
172175
// CHECK-NEXT: 545, 645
173176
// CHECK-NEXT: 545, 645, 771
174177
// CHECK-NEXT: 0x84675, 0x285, 0x303, 0x400

0 commit comments

Comments
 (0)