[PATCH] Fix pr2570 test on OpenBSD

Joerg Sonnenberger joerg at britannica.bec.de
Tue Dec 17 02:12:41 PST 2013


On Tue, Dec 17, 2013 at 05:08:45AM -0500, Brad Smith wrote:
> The pr2570 test is failing on OpenBSD like so..
> 
> ******************** TEST 'LLVM :: Transforms/LoopStrengthReduce/pr2570.ll' FAILED ********************
> Script:
> --
> /buildbot-llvm/clang-openbsd/llvm/Release+Asserts/bin/opt < /buildbot-llvm/clang-openbsd/llvm/test/Transforms/LoopStrengthReduce/pr2570.ll -loop-reduce -S | grep "phi\>" | /buildbot-llvm/clang-openbsd/llvm/Release+Asserts/bin/count 8
> --
> Exit Code: 1
> 
> Command Output (stderr):
> --
> Expected 8 lines, got 0.
> 
> 
> Because the use of grep is using a GNU grep extension. Attached is a patch to fix the use of
> grep so it'll work with non-GNU implmentations.

Could you convert it to use FileCheck instead?

Joerg



More information about the llvm-commits mailing list