[clang][test] Remove check that fails if SOURCE_DATE_EPOCH is set globally
authorBen Langmuir <blangmuir@apple.com>
Tue, 24 Jan 2023 23:34:37 +0000 (15:34 -0800)
committerBen Langmuir <blangmuir@apple.com>
Wed, 25 Jan 2023 00:00:56 +0000 (16:00 -0800)
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

clang/test/Driver/SOURCE_DATE_EPOCH.c

index 69c0e1e..c2e88f5 100644 (file)
@@ -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"