]> sourceware.org Git - systemtap.git/commitdiff
modules_out_of_tree.exp: adapt for RHEL5
authorJonathan Lebon <jlebon@redhat.com>
Thu, 10 Jul 2014 21:08:23 +0000 (17:08 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Thu, 10 Jul 2014 21:12:19 +0000 (17:12 -0400)
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.

testsuite/systemtap.base/modules_out_of_tree.exp

index 64f577c2638d1842e5ae1a41644a18f5fa378d99..d8d134bff3a7f6ee9eecd2c351555879528c8214 100644 (file)
@@ -31,13 +31,11 @@ write_to_file "stap_$test.c" {
 
    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;
    }
 
@@ -79,7 +77,7 @@ if {[catch {exec stap -l $pp} out] || ![regexp $reg $out]} {
 # 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
This page took 0.027469 seconds and 5 git commands to generate.