[PATCH] D86496: [not][test] Fix disable-symbolization.test when 'printenv' is not available
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 16:59:06 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: aganea, zequanwu.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
MaskRay requested review of this revision.
Also switch back to 'env' which is specified by POSIX.1-2017.
Only Windows may not have 'env' or 'printenv'.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86496
Files:
llvm/test/tools/not/disable-symbolization.test
Index: llvm/test/tools/not/disable-symbolization.test
===================================================================
--- llvm/test/tools/not/disable-symbolization.test
+++ llvm/test/tools/not/disable-symbolization.test
@@ -1,5 +1,5 @@
-# RUN: not --crash printenv > %t || true
-# RUN: FileCheck %s < %t
+# RUN: not --crash env > %t || true
+# RUN: cmp %t /dev/null || FileCheck %s < %t
# CHECK-DAG: LLVM_DISABLE_CRASH_REPORT=1
# CHECK-DAG: LLVM_DISABLE_SYMBOLIZATION=1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86496.287521.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200824/43395d85/attachment.bin>
More information about the llvm-commits
mailing list