[flang-commits] [flang] [Flang] Modify module test to run in a sub-directory (PR #123364)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Fri Jan 17 08:17:04 PST 2025


https://github.com/kiranchandramohan created https://github.com/llvm/llvm-project/pull/123364

This is to avoid race conditions with other tests.

>From 59f9436583c808726a2ce9780389f742785979e1 Mon Sep 17 00:00:00 2001
From: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: Fri, 17 Jan 2025 16:13:12 +0000
Subject: [PATCH] [Flang] Modify module test to run in a sub-directory

---
 flang/test/Lower/module_use.f90 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flang/test/Lower/module_use.f90 b/flang/test/Lower/module_use.f90
index b976663239ef5a..f7c610c9ad22ed 100644
--- a/flang/test/Lower/module_use.f90
+++ b/flang/test/Lower/module_use.f90
@@ -1,6 +1,6 @@
-! RUN: rm -fr %t && mkdir -p %t
-! RUN: bbc -emit-fir -module %t %S/module_definition.f90
-! RUN: bbc -emit-fir -J %t %s -o - | FileCheck %s
+! RUN: rm -fr %t && mkdir -p %t && cd %t
+! RUN: bbc -emit-fir %S/module_definition.f90
+! RUN: bbc -emit-fir %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