From 5d23e798a9fd68f5b7aed17e54f45789fac81285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ram=C3=ADrez?= Date: Mon, 29 Apr 2024 14:59:46 +0200 Subject: [PATCH] Update conans/test/functional/toolchains/meson/test_meson_native_attribute.py Co-authored-by: James --- .../toolchains/meson/test_meson_native_attribute.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/conans/test/functional/toolchains/meson/test_meson_native_attribute.py b/conans/test/functional/toolchains/meson/test_meson_native_attribute.py index a87615c6c83..18538ce1f7f 100644 --- a/conans/test/functional/toolchains/meson/test_meson_native_attribute.py +++ b/conans/test/functional/toolchains/meson/test_meson_native_attribute.py @@ -63,12 +63,7 @@ def build(self): # Even cross-building the library, we want to create an executable using only the native context executable('mygen', 'mygen.cpp', native: true) """) - my_gen_cpp = textwrap.dedent(""" - #include - int main() { - std::cout << "Hello World!"; - return 0; - } + my_gen_cpp = gen_function_cpp(name="main") """) hello_h = gen_function_h(name="hello") hello_cpp = gen_function_cpp(name="hello")