From d3d01eac017f91616c5766230536890c22aad47d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 31 Jul 2014 22:56:52 +0000 Subject: [PATCH] Change lit.cfg to allow whitespace before comments git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214454 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lit.cfg b/test/lit.cfg index 5e64e54de..4b7b47059 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -71,7 +71,7 @@ class LibcxxTestFormat(lit.formats.FileBasedTest): elif 'REQUIRES:' in ln: items = ln[ln.index('REQUIRES:') + 9:].split(',') requires.extend([s.strip() for s in items]) - elif not ln.startswith("//") and ln.strip(): + elif not ln.strip().startswith("//") and ln.strip(): # Stop at the first non-empty line that is not a C++ # comment. break