aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-26 17:13:56 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-26 17:13:56 +0300
commit4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0 (patch)
tree3e9cdf4b34f4f2beffa72a837c409e567d84adb2 /tests
parente8b00dae488e9c9f6f9ef7de99bc340de61541b7 (diff)
downloadcopyjit-4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0.tar.gz
copyjit-4269b6d3d0aeff1cf1bae3eac5f40cceb75576e0.zip
apply fixes to make jit-comparison easier
Diffstat (limited to 'tests')
-rw-r--r--tests/check.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/check.c b/tests/check.c
index 168f02f..e302aed 100644
--- a/tests/check.c
+++ b/tests/check.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+
#include <assert.h>
#include <stddef.h>
@@ -15,7 +17,7 @@ static void check_li()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -34,7 +36,7 @@ static void check_li()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -51,7 +53,7 @@ static void check_li()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -68,7 +70,7 @@ static void check_li()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
}
@@ -86,7 +88,7 @@ static void check_add()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -105,7 +107,7 @@ static void check_add()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -122,7 +124,7 @@ static void check_add()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
@@ -139,7 +141,7 @@ static void check_add()
compile_end(&ctx);
compile_finish(&ctx);
- assert(run(&ctx) == i);
+ assert(run(&ctx, 0, 0, 0, 0) == i);
compile_destroy(&ctx);
}
}
@@ -163,7 +165,7 @@ static void check_branch()
compile_finish(&ctx);
- assert(run(&ctx) == (i != 0));
+ assert(run(&ctx, 0, 0, 0, 0) == (i != 0));
compile_destroy(&ctx);
}
@@ -184,7 +186,7 @@ static void check_branch()
compile_finish(&ctx);
- assert(run(&ctx) == (i == 0));
+ assert(run(&ctx, 0, 0, 0, 0) == (i == 0));
compile_destroy(&ctx);
}
}