pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2022-11-20
2022-11-20 12:43:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>
127292403936753e56d5522ff1879688fb5d1c89 (
38
lines) (+
37
/-
1
)
[
Show
|
Annotate
]
Branch:
grubba/wip/sakura/master
Work in progress: Sakura master
1222:
} ]])
+
test_eval_error([[
+
// Test Pike.DestructImmediate.
+
class Foo {
+
inherit Pike.DestructImmediate;
+
void _destruct() {}
+
}
+
object foo = Foo();
+
error("Foo!\n");
+
]])
+
+
test_eval_error([[
+
// Test Pike.DestructImmediate.
+
class Foo {
+
inherit Pike.DestructImmediate;
+
void _destruct() {
+
catch {
+
error("Bar!\n");
+
};
+
}
+
}
+
object foo = Foo();
+
error("Foo!\n");
+
]])
+
test_any([[ // Test Pike.InhibitDestruct. class Foo {
14542:
} }; )
+
test_compile_any(
+
class Foo {
+
function(int:int) foo;
+
}
+
class Bar {
+
function(int:int)|__deprecated__(function(int, int, int|void:int)) foo;
+
}
-
+
object(Foo) f = Bar();
+
object(Bar) b = Foo();
+
)
+
// - modifiers, compile time access properties test_compile_error_any(class A {} class B {inherit A; int q; void g(){q=v;}})
15507:
")]]) define(dump_test_module, [[test_tests([[ array a() { Tools.Testsuite.log_status("Dumping ]]$1[[, case=$2");
-
return Tools.Testsuite.run_script(({"-M", "recursive_module_dump_test", "-x", "dump", "recursive_module_dump_test/]]$1[["}));
+
return Tools.Testsuite.run_script(({"-M", "recursive_module_dump_test", "-x", "dump", "
--debug=2", "
recursive_module_dump_test/]]$1[["}));
}]])]]) define(try_load_test_module, [[test_tests([[ array a() { Tools.Testsuite.log_status("Instantiating TestModule.A, case=$1");