From 9010b1343b9f931f771d3d49dd03b57868c24d5d Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 4 Jul 2024 20:23:51 +0000 Subject: [PATCH] contrib: c++ify test stubs after switching to c++ compilers --- contrib/devtools/test-security-check.py | 4 ++-- contrib/devtools/test-symbol-check.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/devtools/test-security-check.py b/contrib/devtools/test-security-check.py index f1ea93dc7f2..de372cbd391 100755 --- a/contrib/devtools/test-security-check.py +++ b/contrib/devtools/test-security-check.py @@ -15,10 +15,10 @@ from utils import determine_wellknown_cmd def write_testcode(filename): with open(filename, 'w', encoding="utf8") as f: f.write(''' - #include + #include int main() { - printf("the quick brown fox jumps over the lazy god\\n"); + std::printf("the quick brown fox jumps over the lazy god\\n"); return 0; } ''') diff --git a/contrib/devtools/test-symbol-check.py b/contrib/devtools/test-symbol-check.py index 517626c2859..454dbc6bd20 100755 --- a/contrib/devtools/test-symbol-check.py +++ b/contrib/devtools/test-symbol-check.py @@ -57,11 +57,11 @@ class TestSymbolChecks(unittest.TestCase): executable = 'test3' with open(source, 'w', encoding="utf8") as f: f.write(''' - #include + #include int main() { - printf("42"); + std::printf("42"); return 0; } ''')