isl_test.c: test_gist: fix check for internal consistency
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 19 May 2024 11:30:14 +0000 (19 13:30 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sat, 25 May 2024 13:04:53 +0000 (25 15:04 +0200)
Commit isl-0.16.1-143-gc6870759c6 (isl_test.c: test_gist: check internal
consistency, Sun Mar 13 15:43:06 2016 +0100) introduced a check
for internal consistency, but failed to actually check the results
due to a typo.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_test.c

index f0fd4f8..ccd20ed 100644 (file)
@@ -1994,7 +1994,7 @@ static int test_gist(struct isl_ctx *ctx)
                if (!equal_input)
                        isl_die(ctx, isl_error_unknown,
                                "gist modified input", return -1);
-               if (!equal_input)
+               if (!equal_intersection)
                        isl_die(ctx, isl_error_unknown,
                                "inconsistent gist test case", return -1);
        }