Fix two test cases
This commit is contained in:
parent
eb6b56216c
commit
d4a5a8419f
|
@ -1,11 +1,11 @@
|
|||
project('try compile', 'c', 'cpp')
|
||||
|
||||
code = '''#include<stdio.h>
|
||||
void func() { printf("Something.\\n"); }
|
||||
void func() { printf("Something.\n"); }
|
||||
'''
|
||||
|
||||
breakcode = '''#include<nonexisting.h>
|
||||
void func() { printf("This won't work.\\n"); }
|
||||
void func() { printf("This won't work.\n"); }
|
||||
'''
|
||||
|
||||
foreach compiler : [meson.get_compiler('c'), meson.get_compiler('cpp')]
|
||||
|
|
|
@ -13,8 +13,8 @@ endif
|
|||
|
||||
ok_code = '''#include<stdio.h>
|
||||
int main(int argc, char **argv) {
|
||||
printf("%s\\n", "stdout");
|
||||
fprintf(stderr, "%s\\n", "stderr");
|
||||
printf("%s\n", "stdout");
|
||||
fprintf(stderr, "%s\n", "stderr");
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue