test: fix windows test error
parent
fe0942043c
commit
426eb46166
|
@ -2741,7 +2741,12 @@ fn (g Gen) type_default(typ table.Type) string {
|
||||||
pub fn (g mut Gen) write_tests_main() {
|
pub fn (g mut Gen) write_tests_main() {
|
||||||
g.definitions.writeln('int g_test_oks = 0;')
|
g.definitions.writeln('int g_test_oks = 0;')
|
||||||
g.definitions.writeln('int g_test_fails = 0;')
|
g.definitions.writeln('int g_test_fails = 0;')
|
||||||
|
$if windows {
|
||||||
|
g.writeln('int wmain() {')
|
||||||
|
}
|
||||||
|
$else {
|
||||||
g.writeln('int main() {')
|
g.writeln('int main() {')
|
||||||
|
}
|
||||||
g.writeln('\t_vinit();')
|
g.writeln('\t_vinit();')
|
||||||
g.writeln('')
|
g.writeln('')
|
||||||
all_tfuncs := g.get_all_test_function_names()
|
all_tfuncs := g.get_all_test_function_names()
|
||||||
|
|
Loading…
Reference in New Issue