diff --git a/cmd/tools/vtest-fixed.v b/cmd/tools/vtest-fixed.v index e0602ddf6d..ef83c60a4d 100644 --- a/cmd/tools/vtest-fixed.v +++ b/cmd/tools/vtest-fixed.v @@ -31,8 +31,6 @@ const ( 'vlib/v/tests/live_test.v', // Linux & Solaris only; since live does not actually work for now with v2, just skip 'vlib/v/tests/asm_test.v', // skip everywhere for now, works on linux with cc != tcc - 'vlib/sqlite/sqlite_test.v', // works only on ubuntu with installed sqlite - 'vlib/clipboard/clipboard_test.v', // needs code changes to make it compile with v2 ] skip_on_linux = []string skip_on_non_linux = []string diff --git a/vlib/sqlite/sqlite_test.v b/vlib/sqlite/sqlite_test.v index d43c3b0456..d28b55ed42 100644 --- a/vlib/sqlite/sqlite_test.v +++ b/vlib/sqlite/sqlite_test.v @@ -1,20 +1,23 @@ import sqlite fn test_sqlite() { + $if !linux { + return + } db := sqlite.connect(':memory:') db.exec("drop table if exists users") db.exec("create table users (id integer primary key, name text default '');") - + db.exec("insert into users (name) values ('Sam')") db.exec("insert into users (name) values ('Peter')") db.exec("insert into users (name) values ('Kate')") - + nr_users := db.q_int('select count(*) from users') assert nr_users == 3 - + name := db.q_string('select name from users where id = 1') assert name == 'Sam' - + users, mut code := db.exec('select * from users') assert users.len == 3 assert code == 101 diff --git a/vlib/v/gen/x64/gen.v b/vlib/v/gen/x64/gen.v index a4dc773958..48d9b34a9f 100644 --- a/vlib/v/gen/x64/gen.v +++ b/vlib/v/gen/x64/gen.v @@ -439,7 +439,7 @@ fn (mut g Gen) fn_decl(it ast.FnDecl) { g.register_function_address(it.name) g.push(.rbp) // g.write32(SEVENS) - g.sub32(.rsp, 0x10) + // g.sub32(.rsp, 0x10) } for arg in it.args { }