diff --git a/test/correctness/bounds_query_respects_specialize_fail.cpp b/test/correctness/bounds_query_respects_specialize_fail.cpp index ffce1cf373ec..2e590a8c91f6 100644 --- a/test/correctness/bounds_query_respects_specialize_fail.cpp +++ b/test/correctness/bounds_query_respects_specialize_fail.cpp @@ -23,7 +23,12 @@ int main(int argc, char **argv) { Halide::Runtime::Buffer in_buf(nullptr, {halide_dimension_t{0, 0, 0}}); Halide::Runtime::Buffer 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) {