[llvm] r307610 - [llvm-cov] Disable threading in a test. NFC.

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 18:42:12 PDT 2017


Author: vedantk
Date: Mon Jul 10 18:42:12 2017
New Revision: 307610

URL: http://llvm.org/viewvc/llvm-project?rev=307610&view=rev
Log:
[llvm-cov] Disable threading in a test. NFC.

PR30735 reports an issue where llvm-cov hangs with a worker thread
waiting on a condition, and the main thread waiting to join() the
workers. While this doesn't appear to be a bug in llvm-cov or the
ThreadPool implementation, it would be helpful to disable the use of
threading in the llvm-cov tests where no test coverage is added.

More context: https://bugs.llvm.org/show_bug.cgi?id=30735

Modified:
    llvm/trunk/test/tools/llvm-cov/zeroFunctionFile.c

Modified: llvm/trunk/test/tools/llvm-cov/zeroFunctionFile.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-cov/zeroFunctionFile.c?rev=307610&r1=307609&r2=307610&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-cov/zeroFunctionFile.c (original)
+++ llvm/trunk/test/tools/llvm-cov/zeroFunctionFile.c Mon Jul 10 18:42:12 2017
@@ -13,7 +13,7 @@ int main() {
 // REPORT: 0                 0         -           0                 0         -               0               0         -           0                 0         -
 // REPORT-NO: 0%
 
-// RUN: llvm-cov show %S/Inputs/zeroFunctionFile.covmapping -format html -instr-profile %t.profdata -o %t.dir
+// RUN: llvm-cov show -j 1 %S/Inputs/zeroFunctionFile.covmapping -format html -instr-profile %t.profdata -o %t.dir
 // RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=HTML
 // HTML: <td class='column-entry-green'><pre>- (0/0)
 // HTML-NO: 0.00% (0/0)




More information about the llvm-commits mailing list