From: Carl E. L. <ce...@li...> - 2012-09-27 18:25:47
|
OProfile testsuite, change operf version check fail to warning This patch changes the operf version test failure to a warning instead of a failure. Also, the user message that is printed is changed to be more explicit that the user tool operf is not supported rather then using the term "system" which could be interpreted as meaning the kernel. The patch specifically addresses systems with a perf enabled kernel but an older (OProfile 0.9.7 or older) user space tool that does not have support for the new operf user interface. Signed-off-by: Carl Love <ce...@us...> --- testsuite/oprofile-operf/oprofile-operf-run.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/oprofile-operf/oprofile-operf-run.exp b/testsuite/oprofile-operf/oprofile-operf-run.exp index 3a22913..2e54ec7 100644 --- a/testsuite/oprofile-operf/oprofile-operf-run.exp +++ b/testsuite/oprofile-operf/oprofile-operf-run.exp @@ -42,7 +42,7 @@ proc operf_get_version {} { } else { verbose "unable to determine version" set operf_version 0 - fail $test + warning $test } } @@ -173,7 +173,7 @@ if {$user_is_root == 0} { operf_get_version if { $operf_version == 0} { - send "\nSystem does not support OProfile operf interface. Will not run operf tests.\n" + send "\nThe OProfile operf user tool is not supported. Will not run operf tests.\n" } else { operf_delete_samples oprofile-operf_run_tests -- 1.7.12.rc1.22.gbfbf4d4 |