summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-05-31 15:05:42 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-05-31 15:05:42 +0530
commit1043870b3efb37179c71e0b21c7faf9179e641c1 (patch)
treed7485ccc38beb5edc3178bf9447b9c4b32ed6b9d /tests
parentd786ac8fc49391e4efc69891b135979aa2848701 (diff)
communicating fens from frontends & fixing load_fen
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index 2581a58..df802c2 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -14,6 +14,7 @@ double diff_time(struct timespec a, struct timespec b) {
int main() {
int i = 0;
+ int return_type = 0;
while (i < total_test_count) {
char padded_testname[max_test_name_size + 2];
int j = 0;
@@ -34,6 +35,8 @@ int main() {
bool result = tests[i]();
clock_gettime(CLOCK_MONOTONIC, &end);
+ return_type |= !result;
+
printf(
" %s %.2lfs\n",
result ? "\x1b[32mP\x1b[0m" : "\x1b[31mF\x1b[0m",
@@ -41,4 +44,6 @@ int main() {
);
i++;
}
+
+ return return_type;
}