Skip to content

Commit

Permalink
[clang][test] Remove check that fails if SOURCE_DATE_EPOCH is set glo…
Browse files Browse the repository at this point in the history
…bally

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
  • Loading branch information
benlangmuir committed Jan 25, 2023
1 parent f230099 commit 0245dcc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clang/test/Driver/SOURCE_DATE_EPOCH.c
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 0245dcc

Please sign in to comment.