Skip to content

Meson tests fail but pass when ran locally #12736

Answered by eli-schwartz
ErichZimmer asked this question in Q&A
Discussion options

You must be logged in to vote

I tried the following:

* Setting `workdir` to source/build directory in test()

Is this included in your current build files? I don't see it.

For what it's worth, the tests do pass for me, with the following patch:

diff --git a/tests/meson.build b/tests/meson.build
index 7be87be..b9f99fc 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -33,7 +33,8 @@ foreach test_file: test_source_files
   
   test(
     source_name,
-    exec
+    exec,
+    workdir: meson.current_build_dir(),
   )
   
 endforeach
@@ -58,7 +59,8 @@ if found_benchmark
   
     test(
       source_name,
-      exec
+      exec,
+      workdir: meson.current_build_dir(),
     )
   
   endforeach

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ErichZimmer
Comment options

@ErichZimmer
Comment options

@ErichZimmer
Comment options

@eli-schwartz
Comment options

Answer selected by ErichZimmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants