[flang-commits] [flang] [Flang] Use a module directory to avoid race condition (PR #123215)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Thu Jan 16 07:52:05 PST 2025
https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/123215
Use a module directory in a test that uses another fortran test to avoid race conditions in module creation.
>From 1fdbe07545ec5336f9bf7962fe7752a3da092e07 Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Thu, 16 Jan 2025 15:46:17 +0000
Subject: [PATCH] [Flang] Use a module directory to avoid race condition
Use a module directory in a test that uses another fortran test
to avoid race conditions in module creation.
---
flang/test/Lower/module_use.f90 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/flang/test/Lower/module_use.f90 b/flang/test/Lower/module_use.f90
index ad43865470b681..c7b29df882fadc 100644
--- a/flang/test/Lower/module_use.f90
+++ b/flang/test/Lower/module_use.f90
@@ -1,5 +1,6 @@
-! RUN: bbc -emit-fir %S/module_definition.f90
-! RUN: bbc -emit-fir %s -o - | FileCheck %s
+! RUN: rm -fr %t && mkdir %t
+! RUN: bbc -emit-fir -module %t %S/module_definition.f90
+! RUN: bbc -emit-fir -J %t %s -o - | FileCheck %s
! Test use of module data not defined in this file.
! The modules are defined in module_definition.f90
More information about the flang-commits
mailing list