[clang] 0245dcc - [clang][test] Remove check that fails if SOURCE_DATE_EPOCH is set globally
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 24 16:01:15 PST 2023
Author: Ben Langmuir
Date: 2023-01-24T16:00:56-08:00
New Revision: 0245dcc000faf4f6dea9552a44106c8921df841e
URL: https://github.com/llvm/llvm-project/commit/0245dcc000faf4f6dea9552a44106c8921df841e
DIFF: https://github.com/llvm/llvm-project/commit/0245dcc000faf4f6dea9552a44106c8921df841e.diff
LOG: [clang][test] Remove check that fails if SOURCE_DATE_EPOCH is set globally
The check for "no SOURCE_DATE_EPOCH" wasn't especially interesting, and
I am not aware of a _portable_ way to unset and environment variable in
a lit test. So remove it since it can fail if the build environment has
SOURCE_DATE_EPOCH set globally.
Differential Revision: https://reviews.llvm.org/D142511
Added:
Modified:
clang/test/Driver/SOURCE_DATE_EPOCH.c
Removed:
################################################################################
diff --git a/clang/test/Driver/SOURCE_DATE_EPOCH.c b/clang/test/Driver/SOURCE_DATE_EPOCH.c
index 69c0e1e7c3b3..c2e88f5e6b3b 100644
--- a/clang/test/Driver/SOURCE_DATE_EPOCH.c
+++ b/clang/test/Driver/SOURCE_DATE_EPOCH.c
@@ -1,5 +1,2 @@
-// RUN: %clang -E %s -### 2>&1 | FileCheck %s -check-prefix=NO_EPOCH
-// NO_EPOCH-NOT: "-source-date-epoch"
-
// RUN: env SOURCE_DATE_EPOCH=123 %clang -E %s -### 2>&1 | FileCheck %s
// CHECK: "-source-date-epoch" "123"
More information about the cfe-commits
mailing list