diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-10-03 21:25:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 21:25:04 -0700 |
commit | 10b44584ff0b1f49ece260a48f89eb59c123616f (patch) | |
tree | 3bc4f127fe0ecfc81aed2d871820efa1aa133138 /run_unittests.py | |
parent | 264939963f696cbf768b1d7c8011d72a8064323f (diff) | |
parent | 2fe400c350a49930c3fbe86602efa9e0950bb1cb (diff) | |
download | meson-10b44584ff0b1f49ece260a48f89eb59c123616f.zip meson-10b44584ff0b1f49ece260a48f89eb59c123616f.tar.gz meson-10b44584ff0b1f49ece260a48f89eb59c123616f.tar.bz2 |
Merge pull request #7795 from dcbaker/submit/full-compiler-annotations
Full annotations for the Compiler package
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/run_unittests.py b/run_unittests.py index db61ca6..7ddf17d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -360,7 +360,7 @@ class InternalTests(unittest.TestCase): stat.S_IRGRP | stat.S_IXGRP) def test_compiler_args_class_none_flush(self): - cc = mesonbuild.compilers.CCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock()) + cc = mesonbuild.compilers.ClangCCompiler([], 'fake', MachineChoice.HOST, False, mock.Mock()) a = cc.compiler_args(['-I.']) #first we are checking if the tree construction deduplicates the correct -I argument a += ['-I..'] @@ -383,8 +383,8 @@ class InternalTests(unittest.TestCase): a += ['-Ifirst'] self.assertEqual(a, ['-Ifirst', '-Isecond', '-Ithird']) - def test_compiler_args_class(self): - cc = mesonbuild.compilers.CCompiler([], 'fake', False, MachineChoice.HOST, mock.Mock()) + def test_compiler_args_class_clike(self): + cc = mesonbuild.compilers.ClangCCompiler([], 'fake', MachineChoice.HOST, False, mock.Mock()) # Test that empty initialization works a = cc.compiler_args() self.assertEqual(a, []) |