Skip to content

Commit

Permalink
Check returned result in the test (#7911)
Browse files Browse the repository at this point in the history
* Check returned result of Callable

* Format
  • Loading branch information
vksnk authored Oct 22, 2023
1 parent 872264c commit 739053d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/correctness/bounds_query_respects_specialize_fail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ int main(int argc, char **argv) {
Halide::Runtime::Buffer<uint8_t> in_buf(nullptr, {halide_dimension_t{0, 0, 0}});
Halide::Runtime::Buffer<uint8_t> out_buf(32);

c(in_buf, out_buf);
int result = c(in_buf, out_buf);

if (result != 0) {
printf("Callable failed: %d\n", result);
return 1;
}

if (in_buf.dim(0).stride() != 1 ||
in_buf.dim(0).extent() != 32) {
Expand Down

0 comments on commit 739053d

Please sign in to comment.