[clang] [clang] changes where a test writes its output (PR #73560)

Christopher Di Bella via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 12:27:38 PST 2023


https://github.com/cjdb created https://github.com/llvm/llvm-project/pull/73560

Writing directly to /dev/null has permission issues on some systems, so we've changed this to a temporary file instead.

>From 786d368b9d4d315254df1b8631adead6f8c8e379 Mon Sep 17 00:00:00 2001
From: Christopher Di Bella <cjdb at google.com>
Date: Mon, 27 Nov 2023 19:58:51 +0000
Subject: [PATCH] [clang] changes where a test writes its output

Writing directly to /dev/null has permission issues on some systems, so
we've changed this to a temporary file instead.
---
 clang/test/OpenMP/dispatch_unsupported.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/OpenMP/dispatch_unsupported.c b/clang/test/OpenMP/dispatch_unsupported.c
index fe7ccfa90a5831a..729c046e2635ee4 100644
--- a/clang/test/OpenMP/dispatch_unsupported.c
+++ b/clang/test/OpenMP/dispatch_unsupported.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -fopenmp -disable-llvm-passes %s -o /dev/null -verify=expected
+// RUN: %clang_cc1 -emit-llvm -fopenmp -disable-llvm-passes %s -o %t -verify=expected
 
 // expected-error at +2 {{cannot compile this OpenMP dispatch directive yet}}
 void a(){



More information about the cfe-commits mailing list