summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-04-08 15:31:49 -0500
committerDavid Smith <dsmith@redhat.com>2009-04-08 15:31:49 -0500
commit0af51b594e033a9d7148be6428f7365f2fcd1663 (patch)
treef9a858b02ea706fd2f42ce19718835e56287870b /testsuite/lib/systemtap.exp
parent117bcbe45ff448c0913007d31cfa2be78caeb4ba (diff)
downloadsystemtap-steved-0af51b594e033a9d7148be6428f7365f2fcd1663.tar.gz
systemtap-steved-0af51b594e033a9d7148be6428f7365f2fcd1663.tar.xz
systemtap-steved-0af51b594e033a9d7148be6428f7365f2fcd1663.zip
Better error handling in 'setup_server'.
2009-04-08 David Smith <dsmith@redhat.com> * lib/systemtap.exp (setup_server): Better error handling.
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 5311be7b..98108fa5 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -85,7 +85,7 @@ proc setup_server {} {
# Make sure that the necessary resources are available to run the client/server.
if {[installtest_p]} then {
- if {[exec /usr/bin/which stap-client-connect] == ""} then {
+ if {[catch {exec /usr/bin/which stap-client-connect} dummy]} then {
print "Unable to start a server: stap-client-connect is not found in PATH"
return 0
}
@@ -93,7 +93,7 @@ proc setup_server {} {
print "Unable to start a server: [exec pwd]/../stap-client-connect is not found"
return 0
}
- if {[exec /usr/bin/which avahi-publish-service] == ""} then {
+ if {[catch {exec /usr/bin/which avahi-publish-service} dummy]} then {
print "Unable to start a server: avahi-publish-service is not found in PATH"
return 0
}