We put the opening braces on the same line as the function declaration
so that the reported lineno in listing mode is the same on RHEL5 GCC
(which considered the opening brace as the decl_line).
We also skip the probing part by checking for module refresh support by
using the new module_refresh_p proc.
MODULE_LICENSE("GPL");
- static int __init stap_TEST_init(void)
- {
+ static int __init stap_TEST_init(void) {
return 0;
}
- static void __exit stap_TEST_cleanup(void)
- {
+ static void __exit stap_TEST_cleanup(void) {
return;
}
# OK now let's actually go for a run
set subtest "probing"
-if {![installtest_p] || !$am_root} {
+if {![installtest_p] || !$am_root || ![module_refresh_p]} {
untested "$test ($subtest)"
test_cleanup
return