From d2af8f4df991e02801aba8ccbd304a6d57d24893 Mon Sep 17 00:00:00 2001 From: Tibor Dusnoki Date: Tue, 27 Jun 2023 18:32:42 +0200 Subject: [PATCH] fix sema tests on Windows On Windows '%flang1' is interpreted incorrectly as 'flang.exe1'. This change assumes that flang1 executable is in the user's path. --- test/sema/aconst_with_null_subict.f90 | 2 +- test/sema/implied_do.f90 | 2 +- test/sema/sconst_with_null_subc.f90 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sema/aconst_with_null_subict.f90 b/test/sema/aconst_with_null_subict.f90 index 43c4fda1373..96e7a263921 100644 --- a/test/sema/aconst_with_null_subict.f90 +++ b/test/sema/aconst_with_null_subict.f90 @@ -8,7 +8,7 @@ ! Ensure that flang1 successfully produces correct symbol table entries for the ! empty derived type S, the array A, as well as the array constructor [S()]. -! RUN: %flang1 %s -opt 0 -q 0 1 -q 47 1 | FileCheck %s +! RUN: flang1 %s -opt 0 -q 0 1 -q 47 1 | FileCheck %s ! CHECK: datatype:[[STYPE:[0-9]+]] Derived member:1 size:0 ! CHECK: datatype:[[ATYPE:[0-9]+]] Array type:[[STYPE]] dims:1 ! CHECK: datatype:[[CTYPE:[0-9]+]] Array type:[[STYPE]] dims:1 diff --git a/test/sema/implied_do.f90 b/test/sema/implied_do.f90 index 5c019b930af..e178c1bdb68 100644 --- a/test/sema/implied_do.f90 +++ b/test/sema/implied_do.f90 @@ -4,7 +4,7 @@ ! SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ! -! RUN: %flang1 %s | FileCheck %s +! RUN: flang1 %s | FileCheck %s ! CHECK: procedure:Program ! CHECK-DAG: s:[[FUNC:[0-9]+]] {{.*}}:func ! CHECK-DAG: s:[[REALLOC:[0-9]+]] {{.*}}:f90_realloc_arr_in_impiled_do diff --git a/test/sema/sconst_with_null_subc.f90 b/test/sema/sconst_with_null_subc.f90 index 1eaf3eb59df..1c4acb53b32 100644 --- a/test/sema/sconst_with_null_subc.f90 +++ b/test/sema/sconst_with_null_subc.f90 @@ -8,7 +8,7 @@ ! Ensure that flang1 generates a flag for empty derived type to mark null subc ! when exporting typedef initialization to MOD file. -! RUN: %flang1 %s +! RUN: flang1 %s ! RUN: FileCheck %s --input-file=./sconst_with_null_subc.mod ! RUN: rm -f ./sconst_with_null_subc.mod module sconst_with_null_subc