[libbonobo] Set up dbus environment in test-activation/test.sh
- From: Ray Strode <halfline src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [libbonobo] Set up dbus environment in test-activation/test.sh
 
- Date: Tue, 22 Sep 2009 23:31:00 +0000 (UTC)
 
commit 862b85c236de4ada6c9096af0d87366799291821
Author: Ray Strode <rstrode redhat com>
Date:   Tue Sep 22 19:30:00 2009 -0400
    Set up dbus environment in test-activation/test.sh
    
    It makes "make distcheck" fail less frequently.
 tests/test-activation/test.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-activation/test.sh b/tests/test-activation/test.sh
index 5e3a7d6..4d1cb45 100755
--- a/tests/test-activation/test.sh
+++ b/tests/test-activation/test.sh
@@ -15,6 +15,7 @@
 
 ulimit -c 0
 
+eval $(dbus-launch --sh-syntax)
 
 if test "z$ORBIT_TMPDIR" = "z"; then
 	ORBIT_TMPDIR="/tmp/orbit-$USER/tst"
@@ -32,7 +33,9 @@ LD_LIBRARY_PATH="./.libs:$LD_LIBRARY_PATH";
 export BONOBO_ACTIVATION_SERVER BONOBO_ACTIVATION_DEBUG_OUTPUT BONOBO_ACTIVATION_PATH PATH LD_LIBRARY_PATH
 
 if ./bonobo-activation-test; then
+    kill -15 $DBUS_SESSION_BUS_PID
     exit 0;
 else
+    kill -15 $DBUS_SESSION_BUS_PID
     exit 1;
 fi
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]