From 59afb2c2a91fd6c7aa8a9c548c2d7103df6d4314 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 17 Apr 2014 17:32:44 -0400 Subject: [PATCH] stmt_rel_user.exp: generalize it Since only stmt_rel_user.exp uses stmt_rel.c, it's more fitting to rename it and make the testcase refer to it in a more general way. --- testsuite/systemtap.base/{stmt_rel.c => stmt_rel_user.c} | 0 testsuite/systemtap.base/stmt_rel_user.exp | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename testsuite/systemtap.base/{stmt_rel.c => stmt_rel_user.c} (100%) diff --git a/testsuite/systemtap.base/stmt_rel.c b/testsuite/systemtap.base/stmt_rel_user.c similarity index 100% rename from testsuite/systemtap.base/stmt_rel.c rename to testsuite/systemtap.base/stmt_rel_user.c diff --git a/testsuite/systemtap.base/stmt_rel_user.exp b/testsuite/systemtap.base/stmt_rel_user.exp index 1cd408e1e..b6f595024 100644 --- a/testsuite/systemtap.base/stmt_rel_user.exp +++ b/testsuite/systemtap.base/stmt_rel_user.exp @@ -17,7 +17,7 @@ for {set i 0} {$i < [all_compile_flags]} {incr i} { set rel_flags "$rel_flags additional_flags=-Winline" set rel_flags "$rel_flags additional_flags=-g" set rel_flags "$rel_flags $extra_flag" - set res [target_compile $srcdir/$subdir/stmt_rel.c [pwd]/stmt_rel.x executable $rel_flags] + set res [target_compile $srcdir/$subdir/$test.c [pwd]/$test.x executable $rel_flags] if { $res != "" } { verbose "target_compile failed: $res" 2 fail "$test-$extra_name compiling" @@ -35,10 +35,10 @@ for {set i 0} {$i < [all_compile_flags]} {incr i} { if { [info procs ${runtime}_kfails] ne "" } { ${runtime}_kfails $i } - spawn stap --runtime=$runtime -c ./stmt_rel.x -e "probe process(\"./stmt_rel.x\").statement(\"Move@stmt_rel.c+2\") {printf(\"Move %d\\n\",\$s1)}" + spawn stap --runtime=$runtime -c ./$test.x -e "probe process(\"./$test.x\").statement(\"Move@$test.c+2\") {printf(\"Move %d\\n\",\$s1)}" } elseif {[uprobes_p]} { set test_name "$test-$extra_name" - spawn stap -c ./stmt_rel.x -e "probe process(\"./stmt_rel.x\").statement(\"Move@stmt_rel.c+2\") {printf(\"Move %d\\n\",\$s1)}" + spawn stap -c ./$test.x -e "probe process(\"./$test.x\").statement(\"Move@$test.c+2\") {printf(\"Move %d\\n\",\$s1)}" } else { untested "$test-$extra_name" continue -- 2.43.5