Skip to content

Commit 7a282df

Browse files
author
Tarun Prabhu
committed
Fix tests. Check for failure on unsupported platforms
1 parent 0ed2e97 commit 7a282df

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flang/test/Driver/frecord-command-line.f90

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
! about anything. The correct lowering to a module attribute and beyond will
44
! be checked in other tests.
55
!
6-
! RUN: %flang -### -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD %s
7-
! RUN: %flang -### -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NORECORD %s
6+
! RUN: %flang -### -target x86_64-unknown-linux -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD %s
7+
! RUN: %flang -### -target x86_64-unknown-macosx -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD %s
8+
! RUN: not %flang -### -target x86_64-unknown-windows -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD-ERROR %s
89

9-
! CHECK-RECORD: "-record-command-line" "{{.+}}/flang{{[^ ]*}} -### -frecord-command-line {{.+}}/frecord-command-line.f90 {{.*}}"
10+
! RUN: %flang -### -target x86_64-unknown-linux -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
11+
! RUN: %flang -### -target x86_64-unknown-macosx -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
12+
! RUN: %flang -### -target x86_64-unknown-windows -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
1013

11-
! CHECK-NORECORD-NOT: "-record-command-line"
14+
! CHECK-RECORD: "-record-command-line" "{{.+}}/flang{{[^ ]*}} {{.+}} -frecord-command-line {{.+}}/frecord-command-line.f90 {{.*}}"
15+
! CHECK-NO-RECORD-NOT: "-record-command-line"
16+
! CHECK-RECORD-ERROR: error: unsupported option '-frecord-command-line' for target

0 commit comments

Comments
 (0)