Fix test suite misconfiguration on OS X

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@314755 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/libcxx/test/config.py b/utils/libcxx/test/config.py
index 8d41793..7a8fc46 100644
--- a/utils/libcxx/test/config.py
+++ b/utils/libcxx/test/config.py
@@ -478,8 +478,8 @@
 
         # Attempt to detect the glibc version by querying for __GLIBC__
         # in 'features.h'.
-        macros = self._dump_macros_verbose(flags=['-include', 'features.h'])
-        if macros is not None and '__GLIBC__' in macros:
+        macros = self.cxx.dumpMacros(flags=['-include', 'features.h'])
+        if isinstance(macros, dict) and '__GLIBC__' in macros:
             maj_v, min_v = (macros['__GLIBC__'], macros['__GLIBC_MINOR__'])
             self.config.available_features.add('glibc')
             self.config.available_features.add('glibc-%s' % maj_v)