[PATCH] D142511: [clang][test] Remove check that fails if SOURCE_DATE_EPOCH is set globally

Ben Langmuir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 24 15:38:01 PST 2023


benlangmuir created this revision.
benlangmuir added a reviewer: tstellar.
Herald added a project: All.
benlangmuir requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142511

Files:
  clang/test/Driver/SOURCE_DATE_EPOCH.c


Index: clang/test/Driver/SOURCE_DATE_EPOCH.c
===================================================================
--- clang/test/Driver/SOURCE_DATE_EPOCH.c
+++ 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142511.491938.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230124/9a5fc514/attachment.bin>


More information about the cfe-commits mailing list