diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-08-01 15:43:30 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-08-01 15:56:56 +0530 |
commit | 50a527f757f69befbe4081dd90467bdaef50a68f (patch) | |
tree | 85148a6d50126d7ffea9122c568bdd2bac02a5ba /tests | |
parent | fb801a2b7d0ae0ed0fc6b3543974bb8e9fc64357 (diff) |
tests: clean up
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dag.c | 16 | ||||
-rw-r--r-- | tests/meson.build | 5 |
2 files changed, 10 insertions, 11 deletions
diff --git a/tests/dag.c b/tests/dag.c index 806aa75..c49bf34 100644 --- a/tests/dag.c +++ b/tests/dag.c @@ -1,12 +1,12 @@ -#include <stdio.h> #include <errno.h> +#include <stdio.h> #include <string.h> -#include "util.h" -#include "queue.h" #include "evanix.h" -#include "solver_sjf.h" +#include "jobs.h" +#include "queue.h" #include "test.h" +#include "util.h" /* * A C A C @@ -23,13 +23,13 @@ struct evanix_opts_t evanix_opts = { .system = NULL, .solver_report = false, .check_cache_status = false, - .solver = solver_sjf, + .solver = NULL, .break_evanix = false, }; static void test_merge() { - struct job *job, *a, *b, *c; + struct job *job, *a, *b, *c, *tmp; FILE *stream; int ret; struct job *htab = NULL; @@ -65,6 +65,10 @@ static void test_merge() test_assert(a->deps[0] == c->deps[0]); fclose(stream); + HASH_ITER (hh, htab, job, tmp) + HASH_DEL(htab, job); + job_free(a); + job_free(c); } int main(void) diff --git a/tests/meson.build b/tests/meson.build index 22ce6b8..d8f1ef6 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -5,11 +5,6 @@ dag_test = executable( '../src/jobs.c', '../src/util.c', '../src/queue.c', - '../src/build.c', - '../src/jobid.c', - '../src/solver_conformity.c', - '../src/solver_highs.c', - '../src/solver_sjf.c', ], include_directories: evanix_inc, |