From b340471ff59477ed1caee94ddba2bbb6e1315a1c Mon Sep 17 00:00:00 2001 From: Marcos Pividori Date: Wed, 1 Feb 2017 22:39:55 +0000 Subject: [PATCH] [libFuzzer] Fix test because cmd prompt does not expand wildcard. Commands should expand the wildcards on Windows, the cmd prompt doesn't. Because of that sancov was not finding the needed file. To deal with this, we use ls and xargs from gnu win utils. Differential Revision: https://reviews.llvm.org/D29374 llvm-svn: 293825 --- llvm/lib/Fuzzer/test/dump_coverage.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Fuzzer/test/dump_coverage.test b/llvm/lib/Fuzzer/test/dump_coverage.test index af1063d0b031..8df087e0398e 100644 --- a/llvm/lib/Fuzzer/test/dump_coverage.test +++ b/llvm/lib/Fuzzer/test/dump_coverage.test @@ -2,7 +2,7 @@ RUN: DIR=%t_workdir RUN: BUILD_DIR=$(pwd) RUN: rm -rf $DIR && mkdir -p $DIR && cd $DIR RUN: not $BUILD_DIR/LLVMFuzzer-NullDerefTest -dump_coverage=1 2>&1 | FileCheck %s -RUN: sancov -covered-functions *.sancov $BUILD_DIR/LLVMFuzzer-NullDerefTest | FileCheck %s --check-prefix=SANCOV +RUN: ls *.sancov | xargs sancov -covered-functions $BUILD_DIR/LLVMFuzzer-NullDerefTest* | FileCheck %s --check-prefix=SANCOV RUN: $BUILD_DIR/LLVMFuzzer-DSOTest -dump_coverage=1 -runs=0 2>&1 | FileCheck %s --check-prefix=DSO RUN: not $BUILD_DIR/LLVMFuzzer-NullDerefTest -dump_coverage=0 2>&1 | FileCheck %s --check-prefix=NOCOV RUN: rm -rf $DIR