diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-06-19 10:06:04 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-08-10 21:46:14 +0300 |
| commit | 7082dfe547aba74007d5a634010216f732eb0af9 (patch) | |
| tree | c0eef6d1fa6ee9f07f9761ec15b8336fcd7d9edf /run_tests.py | |
| parent | dce9c554536928bb55667d6ca53b24ad91c4c475 (diff) | |
| download | meson-7082dfe547aba74007d5a634010216f732eb0af9.tar.gz | |
unittests: remove FakeCompilerOptions
It does not seem to be needed anymore, and the incomplete mock does
not have for example the "yielding" attribute that is used by
OptionStore.get_value_object_and_value_for.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'run_tests.py')
| -rwxr-xr-x | run_tests.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/run_tests.py b/run_tests.py index 4e22028b8..6ca84f07f 100755 --- a/run_tests.py +++ b/run_tests.py @@ -135,10 +135,6 @@ class FakeBuild: def __init__(self, env): self.environment = env -class FakeCompilerOptions: - def __init__(self): - self.value = [] - def get_fake_options(prefix: str = '') -> SharedCMDOptions: opts = T.cast('SharedCMDOptions', argparse.Namespace()) opts.native_file = [] @@ -153,7 +149,6 @@ def get_fake_env(sdir: str = '', bdir: T.Optional[str] = None, prefix: str = '', if opts is None: opts = get_fake_options(prefix) env = Environment(sdir, bdir, opts) - env.coredata.optstore.set_value_object(OptionKey('c_args'), FakeCompilerOptions()) env.machines.host.cpu_family = 'x86_64' # Used on macOS inside find_library # Invalidate cache when using a different Environment object. clear_meson_configure_class_caches() |
