[libunwind] 5f7a030 - [libunwind] Enable the new libc++ testing format by default

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 15:17:32 PDT 2020


Author: Louis Dionne
Date: 2020-04-13T18:17:18-04:00
New Revision: 5f7a0301628671b8f4d2c1d9ea90ee723d889a56

URL: https://github.com/llvm/llvm-project/commit/5f7a0301628671b8f4d2c1d9ea90ee723d889a56
DIFF: https://github.com/llvm/llvm-project/commit/5f7a0301628671b8f4d2c1d9ea90ee723d889a56.diff

LOG: [libunwind] Enable the new libc++ testing format by default

The new format should be equivalent to the old format, and it is now the
default format when running the libc++ and libc++abi tests. This commit
changes the libunwind tests to use the new format by default too. If
unexpected failures are discovered, it should be fine to revert this
commit until they are addressed.

Also note that it is still possible to use the old format by passing
`--param=use_old_format=True` when running Lit for the time being.

Differential Revision: https://reviews.llvm.org/D77733

Added: 
    

Modified: 
    libunwind/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/libunwind/test/lit.cfg b/libunwind/test/lit.cfg
index 4ac749392737..262f25af0d70 100644
--- a/libunwind/test/lit.cfg
+++ b/libunwind/test/lit.cfg
@@ -67,9 +67,10 @@ config_module = __import__(config_module_name, fromlist=['Configuration'])
 configuration = config_module.Configuration(lit_config, config)
 configuration.configure()
 configuration.print_config_info()
-if lit_config.params.get('use_new_format', False):
-    lit_config.note("Using the experimental libc++ testing format")
+if lit_config.params.get('use_old_format', False):
+    lit_config.note("Using the old libc++ testing format")
+    config.test_format = configuration.get_test_format()
+else:
+    lit_config.note("Using the new libc++ testing format")
     import libcxx.test.newformat
     config.test_format = libcxx.test.newformat.CxxStandardLibraryTest()
-else:
-    config.test_format = configuration.get_test_format()


        


More information about the cfe-commits mailing list