tarunprabhu wrote:

> The test that fails is `flang/test/Lower/module_use.f90`. This test also 
> compiles another test `flang/test/Lower/module_definition.f90`. Is there an 
> issue with compiling the same test with modules two times and can they 
> interact badly? This used to be the case in Classic Flang.

If the tests happen to run in parallel, they could clobber the `.mod` file if 
both write the module file to the same directory. This is the case with 
`gfortran`, but I haven't explicitly tried such things with flang.

Specifying an explicit `-J` with a temporary directory should resolve that. I 
know that `%t` in `lit` gives a temporary file. I don't know if you can get a 
temporary directory in a similar fashion.

https://github.com/llvm/llvm-project/pull/123097
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to