[clang] c4b79bf - Fix the test added in 55cd5bc50964449627f6f1

Yuanfang Chen via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 16:45:02 PDT 2022


Author: Yuanfang Chen
Date: 2022-09-27T16:42:55-07:00
New Revision: c4b79bf083e0c50f86f0dfe85b8bd0df1b3506a0

URL: https://github.com/llvm/llvm-project/commit/c4b79bf083e0c50f86f0dfe85b8bd0df1b3506a0
DIFF: https://github.com/llvm/llvm-project/commit/c4b79bf083e0c50f86f0dfe85b8bd0df1b3506a0.diff

LOG: Fix the test added in 55cd5bc50964449627f6f1

It is hard to test the functionality for multiple platforms. Just test it
on Linux as similar patches did in the past.

Added: 
    clang/test/Driver/crash-diagnostics-dir-4.c

Modified: 
    clang/test/Driver/crash-diagnostics-dir-2.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/crash-diagnostics-dir-2.c b/clang/test/Driver/crash-diagnostics-dir-2.c
index 071afb81ed51b..432a8893f8786 100644
--- a/clang/test/Driver/crash-diagnostics-dir-2.c
+++ b/clang/test/Driver/crash-diagnostics-dir-2.c
@@ -1,16 +1,5 @@
-// UNSUPPORTED: ps4, system-windows
-
 // RUN: %clang -### -fcrash-diagnostics-dir=mydumps -c %s 2>&1 \
 // RUN:     | FileCheck %s --check-prefix=OPTION
 // OPTION: "-crash-diagnostics-dir=mydumps"
 // RUN: %clang -### -c %s 2>&1 | FileCheck %s --check-prefix=NOOPTION
 // NOOPTION-NOT: "-crash-diagnostics-dir
-
-// RUN: %clang -### -fcrash-diagnostics-dir=mydumps -flto %s 2>&1 \
-// RUN:     | FileCheck %s --check-prefix=LTO-OPTION
-// LTO-OPTION: "-cc1"
-// LTO-OPTION: "-plugin-opt=-crash-diagnostics-dir=mydumps"
-
-// RUN: %clang -### -flto %s 2>&1 | FileCheck %s --check-prefix=LTO-NOOPTION
-// LTO-NOOPTION: "-cc1"
-// LTO-NOOPTION-NOT: "-plugin-opt=-crash-diagnostics-dir=mydumps"

diff  --git a/clang/test/Driver/crash-diagnostics-dir-4.c b/clang/test/Driver/crash-diagnostics-dir-4.c
new file mode 100644
index 0000000000000..573e821ca1f81
--- /dev/null
+++ b/clang/test/Driver/crash-diagnostics-dir-4.c
@@ -0,0 +1,8 @@
+// RUN: %clang -target x86_64-linux-unknown -### -fcrash-diagnostics-dir=mydumps -flto %s 2>&1 \
+// RUN:     | FileCheck %s --check-prefix=LTO-OPTION
+// LTO-OPTION: "-cc1"
+// LTO-OPTION: "-plugin-opt=-crash-diagnostics-dir=mydumps"
+
+// RUN: %clang -target x86_64-linux-unknown -### -flto %s 2>&1 | FileCheck %s --check-prefix=LTO-NOOPTION
+// LTO-NOOPTION: "-cc1"
+// LTO-NOOPTION-NOT: "-plugin-opt=-crash-diagnostics-dir=mydumps"


        


More information about the cfe-commits mailing list