[Polly][test] Test difference between isl::stat:ok() and isl::stat::error().
authorMichael Kruse <llvm-project@meinersbur.de>
Thu, 5 Aug 2021 19:47:14 +0000 (14:47 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Thu, 5 Aug 2021 19:49:31 +0000 (14:49 -0500)
commit50eaa82cdbc72588f0841658bbad9695855eba85
treee844dace220fa172e1f7bc32803c95b167a94475
parent7ca2b9aac782c223a9b3d59af9572a574e3a21d8
[Polly][test] Test difference between isl::stat:ok() and isl::stat::error().

The foreach callback wrappers tests check the return values of isl::stat:ok() and isl::stat::error() separately. However, due to the the container they are iterating over containing just one element, they are actually not testing the difference between them.

This patch changes to set to be iterated over to contain 2 element to make returning sl::stat:ok (continue iterating the next element) and isl::stat::error (break after current element) have different effects other than the return value of the foreach itself.

Reviewed By: patacca

Differential Revision: https://reviews.llvm.org/D107395
polly/unittests/Isl/IslTest.cpp