From 04d2d50d6d42921110d45b58b375ee46193deaee Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Wed, 28 Feb 2024 19:48:54 +0100 Subject: [PATCH] Fix typo in tests --- tests/test_scheduler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py index 1c1ba48d2..07e8a12a3 100644 --- a/tests/test_scheduler.py +++ b/tests/test_scheduler.py @@ -2644,7 +2644,7 @@ def test_scheduler_frontend_args(frontend, frontend_args, defines, preprocess, scheduler = Scheduler( paths=[workdir], config=config, seed_routines=['test_scheduler_frontend_args1'], - frontend=frontend, defines=defines, preprocess=preprocess, xmods=workdir + frontend=frontend, defines=defines, preprocess=preprocess, xmods=[workdir] ) assert set(scheduler.items) == set(expected_dependencies) @@ -2654,7 +2654,9 @@ def test_scheduler_frontend_args(frontend, frontend_args, defines, preprocess, for item in scheduler.items: cpp_directives = FindNodes(PreprocessorDirective).visit(item.ir.ir) - assert bool(cpp_directives) == (item in has_cpp_directives) + assert bool(cpp_directives) == (item in has_cpp_directives and frontend != OMNI) + # NB: OMNI always does preprocessing, therefore we won't find the CPP directives + # after the full parse rmtree(workdir)