summaryrefslogtreecommitdiff
path: root/mesonbuild/minit.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-28 00:01:31 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-31 23:24:29 +0200
commit4a189cf8c53e22b747521cae93c18cac3a45cc5a (patch)
tree14f77b4d494cdb4d83dd1e177ef79d43ba7a398d /mesonbuild/minit.py
parentf1afd44b2b2fb85de1c55408b46e50b4381f50d2 (diff)
downloadmeson-4a189cf8c53e22b747521cae93c18cac3a45cc5a.tar.gz
Add unit test that checks that the sample projects compile.init
Diffstat (limited to 'mesonbuild/minit.py')
-rw-r--r--mesonbuild/minit.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py
index 29b5056e6..98817cba4 100644
--- a/mesonbuild/minit.py
+++ b/mesonbuild/minit.py
@@ -113,10 +113,10 @@ hello_c_template = '''#include <stdio.h>
int main(int argc, char **argv) {{
if(argc != 1) {{
- printf("%s takes not arguments.\\n", argv[0]);
+ printf("%s takes no arguments.\\n", argv[0]);
return 1;
}}
- printf("This is project %s.\n", PROJECT_NAME);
+ printf("This is project %s.\\n", PROJECT_NAME);
return 0;
}}
'''
@@ -138,7 +138,7 @@ hello_cpp_template = '''#include <iostream>
int main(int argc, char **argv) {{
if(argc != 1) {{
- printf("%s takes not arguments.\\n", argv[0]);
+ std::cout << argv[0] << "takes no arguments.\\n";
return 1;
}}
std::cout << "This is project " << PROJECT_NAME << ".\\n";
@@ -209,7 +209,7 @@ lib_cpp_test_template = '''#include <{header_file}>
int main(int argc, char **argv) {{
if(argc != 1) {{
- printf("%s takes no arguments.\\n", argv[0]);
+ std::cout << argv[0] << " takes no arguments.\\n";
return 1;
}}
{namespace}::{class_name} c;