From abaafa8e54eeaac9900bda7ae8c26f1a415afbc2 Mon Sep 17 00:00:00 2001 From: Fredrik Noring <noring@nocrew.org> Date: Sun, 24 May 1998 23:47:59 +0200 Subject: [PATCH] Fixes. Rev: lib/modules/Yabu.pmod/test.pike:1.2 --- lib/modules/Yabu.pmod/test.pike | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/modules/Yabu.pmod/test.pike b/lib/modules/Yabu.pmod/test.pike index 759dee47a5..a30780a77b 100644 --- a/lib/modules/Yabu.pmod/test.pike +++ b/lib/modules/Yabu.pmod/test.pike @@ -2,13 +2,13 @@ #define ERR(msg) throw(({ msg+"\n", backtrace() })); -void main(int argc, array argv) +int main(int argc, array argv) { .module.db("test.db", "wct")->purge(); object db = .module.db("test.db", "wct"); object table = db["Aces"]; - // Test transactions + // Test transactions. table["Blixt"] = "Gordon"; object transaction = table->transaction(); @@ -37,6 +37,7 @@ void main(int argc, array argv) if(table["Buck"] != "Rogers") ERR("Table diff #9!"); + // Test multiple commands. mapping m = ([]); for(int i = 0; i < 10; i++) { string s = (string)(i%3); @@ -60,7 +61,9 @@ void main(int argc, array argv) } } + // Remove test database. db->purge(); - write("Yabu test program says A OK.\n"); + write("Yabu test program says everything is A OK.\n"); + return 1; } -- GitLab