[libcxx-commits] [PATCH] D116010: [libcxx] [test] Don't rerun supportsVerify for each individual test
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 20 08:08:18 PST 2021
ldionne requested changes to this revision.
ldionne added inline comments.
This revision now requires changes to proceed.
================
Comment at: libcxx/utils/libcxx/test/dsl.py:180-185
+ command = "%{{cxx}} -xc++ {} -Werror -fsyntax-only -Xclang -verify-ignore-unexpected".format(os.devnull)
+ command = lit.TestRunner.applySubstitutions([command], config.substitutions,
+ recursion_limit=config.recursiveExpansionLimit)[0]
+ devNull = open(os.devnull, 'w')
+ result = subprocess.call(command, shell=True, stdout=devNull, stderr=devNull)
+ return result == 0
----------------
If we move it here, I suggest we rewrite it as:
```
return hasCompileFlag(config, '-Xclang -verify-ignore-unexpected')
```
================
Comment at: libcxx/utils/libcxx/test/format.py:219
VERIFY_FLAGS = '-Xclang -verify -Xclang -verify-ignore-unexpected=note -ferror-limit=0'
- supportsVerify = _supportsVerify(test.config)
filename = test.path_in_suite[-1]
----------------
I wonder why I didn't do it that way from the start. I guess it's because we didn't have `features.py` when I first introduced the new testing format.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116010/new/
https://reviews.llvm.org/D116010
More information about the libcxx-commits
mailing list