[ubsan] Enable testing of .m files
authorVedant Kumar <vsk@apple.com>
Fri, 13 Dec 2019 20:57:37 +0000 (12:57 -0800)
committerVedant Kumar <vsk@apple.com>
Fri, 13 Dec 2019 22:55:29 +0000 (14:55 -0800)
This allows `.m` test files, like the existing Misc/bool.m, to be
tested.

compiler-rt/test/ubsan/lit.common.cfg.py

index a5564eb..aa457a6 100644 (file)
@@ -65,7 +65,7 @@ config.substitutions.append( ("%clangxx ", build_invocation(clang_ubsan_cxxflags
 config.substitutions.append( ("%gmlt ", " ".join(config.debug_info_flags) + " ") )
 
 # Default test suffixes.
-config.suffixes = ['.c', '.cpp']
+config.suffixes = ['.c', '.cpp', '.m']
 
 # Check that the host supports UndefinedBehaviorSanitizer tests
 if config.host_os not in ['Linux', 'Darwin', 'FreeBSD', 'Windows', 'NetBSD', 'SunOS', 'OpenBSD']: