From beee5e48b35b502e2c8c14e836151e96123be74d Mon Sep 17 00:00:00 2001
From: Marshall Clow <mclow.lists@gmail.com>
Date: Wed, 15 Jan 2014 16:28:42 +0000
Subject: [PATCH] Apply patch for Albert Wong: 'Modify testit to allow
 filtering tests by prefixes'.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@199318 91177308-0d34-0410-b5e6-96231b3b80d8
---
 test/testit | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/testit b/test/testit
index 096627f69..821292efb 100755
--- a/test/testit
+++ b/test/testit
@@ -80,9 +80,9 @@ IMPLEMENTED_PASS=0
 afunc() {
 	fail=0
 	pass=0
-	if (ls *.fail.cpp > /dev/null 2>&1)
+	if (ls ${TEST_PREFIX}*fail.cpp > /dev/null 2>&1)
 	then
-		for FILE in $(ls *.fail.cpp); do
+		for FILE in $(ls ${TEST_PREFIX}*fail.cpp); do
 			if $CC $OPTIONS $HEADER_INCLUDE $SOURCE_LIB $FILE $LIBS -o ./$TEST_EXE > /dev/null 2>&1
 			then
 				rm ./$TEST_EXE
@@ -94,9 +94,9 @@ afunc() {
 		done
 	fi
 
-	if (ls *.pass.cpp > /dev/null 2>&1)
+	if (ls ${TEST_PREFIX}*pass.cpp > /dev/null 2>&1)
 	then
-		for FILE in $(ls *.pass.cpp); do
+		for FILE in $(ls ${TEST_PREFIX}*pass.cpp); do
             if [ "$VERBOSE" ]
             then
              	echo "Running test: " $FILE