[llvm-branch-commits] [compiler-rt] fb6b195 - [compiler-rt] [test] Remove an unintended grep parameter
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 25 00:34:07 PST 2024
Author: Martin Storsjö
Date: 2024-11-25T09:34:06+01:00
New Revision: fb6b195cae03ba6e5b50870031d710ca6886c5bb
URL: https://github.com/llvm/llvm-project/commit/fb6b195cae03ba6e5b50870031d710ca6886c5bb
DIFF: https://github.com/llvm/llvm-project/commit/fb6b195cae03ba6e5b50870031d710ca6886c5bb.diff
LOG: [compiler-rt] [test] Remove an unintended grep parameter
This parameter seems unintentional here; we're trying to grep
the input on stdin, from the earlier stage in the pipeline.
Since a recent update on Github Actions runners, the previous
form (grepping a file, while piping in data on stdin) would fail
running the test, with the test runner Python script throwing
an exception when evaluating it:
File "D:\a\llvm-mingw\llvm-mingw\llvm-project\llvm\utils\lit\lit\TestRunner.py", line 935, in _executeShCmd
out = procs[i].stdout.read()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'NoneType'
(cherry picked from commit c2717a89b8437d041d532c7b2c535ca4f4b35872)
Added:
Modified:
compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp b/compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp
index 9277fe0b235160..38e99cf6859451 100644
--- a/compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp
+++ b/compiler-rt/test/asan/TestCases/Windows/delay_dbghelp.cpp
@@ -9,7 +9,7 @@
// static build, there won't be any clang_rt DLLs.
// RUN: not grep cl""ang_rt %t || \
// RUN: grep cl""ang_rt %t | xargs which | \
-// RUN: xargs llvm-readobj --coff-imports | not grep dbghelp.dll %t
+// RUN: xargs llvm-readobj --coff-imports | not grep dbghelp.dll
extern "C" int puts(const char *);
More information about the llvm-branch-commits
mailing list