mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
contrib: c++ify test stubs after switching to c++ compilers
This commit is contained in:
parent
261f770333
commit
9010b1343b
2 changed files with 4 additions and 4 deletions
|
@ -15,10 +15,10 @@ from utils import determine_wellknown_cmd
|
||||||
def write_testcode(filename):
|
def write_testcode(filename):
|
||||||
with open(filename, 'w', encoding="utf8") as f:
|
with open(filename, 'w', encoding="utf8") as f:
|
||||||
f.write('''
|
f.write('''
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
int main()
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
''')
|
''')
|
||||||
|
|
|
@ -57,11 +57,11 @@ class TestSymbolChecks(unittest.TestCase):
|
||||||
executable = 'test3'
|
executable = 'test3'
|
||||||
with open(source, 'w', encoding="utf8") as f:
|
with open(source, 'w', encoding="utf8") as f:
|
||||||
f.write('''
|
f.write('''
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
printf("42");
|
std::printf("42");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
''')
|
''')
|
||||||
|
|
Loading…
Add table
Reference in a new issue