From 1a84066b8c6e57d43309edc8cad2ca32acfbf836 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Mon, 1 Jul 2013 18:58:53 +0000 Subject: [PATCH] (1) Add ".test" to test/Other/lit.local.cfg, so llvm-cov.test is actually run. (2) Rename llvm-cov test inputs so the string "llvm-cov" doesn't get substituted by lit within the input filenames on the RUN line. (3) XFAIL llvm-cov.test because it asserts: include/llvm/ADT/SmallVector.h:140: reference llvm::SmallVectorTemplateCommon::operator[](unsigned int) [T = llvm::GCOVBlock *]: Assertion `begin() + idx < end()' failed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185358 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Other/Inputs/{llvm-cov.gcda => llvm_cov.gcda} | Bin test/Other/Inputs/{llvm-cov.gcno => llvm_cov.gcno} | Bin test/Other/lit.local.cfg | 2 +- test/Other/llvm-cov.test | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename test/Other/Inputs/{llvm-cov.gcda => llvm_cov.gcda} (100%) rename test/Other/Inputs/{llvm-cov.gcno => llvm_cov.gcno} (100%) diff --git a/test/Other/Inputs/llvm-cov.gcda b/test/Other/Inputs/llvm_cov.gcda similarity index 100% rename from test/Other/Inputs/llvm-cov.gcda rename to test/Other/Inputs/llvm_cov.gcda diff --git a/test/Other/Inputs/llvm-cov.gcno b/test/Other/Inputs/llvm_cov.gcno similarity index 100% rename from test/Other/Inputs/llvm-cov.gcno rename to test/Other/Inputs/llvm_cov.gcno diff --git a/test/Other/lit.local.cfg b/test/Other/lit.local.cfg index 26930772423..67c7ec77433 100644 --- a/test/Other/lit.local.cfg +++ b/test/Other/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.ll', '.c', '.cpp', '.txt'] +config.suffixes = ['.ll', '.c', '.cpp', '.txt', '.test'] diff --git a/test/Other/llvm-cov.test b/test/Other/llvm-cov.test index c0aa203e2c1..e161b822dac 100644 --- a/test/Other/llvm-cov.test +++ b/test/Other/llvm-cov.test @@ -1,3 +1,3 @@ PR11760 -RUN: llvm-cov -gcda=%S/Inputs/llvm-cov.gcda -gcno=%S/Inputs/llvm-cov.gcno - +RUN: llvm-cov -gcda=%S/Inputs/llvm_cov.gcda -gcno=%S/Inputs/llvm_cov.gcno +XFAIL: * -- 2.34.1