summaryrefslogtreecommitdiff
path: root/test/name-test/run-test-systemserver.sh
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-03-27 17:42:07 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-03-27 17:42:07 +0300
commit0c9ed253893faa13313fee30ce6dbf40a0339035 (patch)
tree488b25b9c65c93011c75eb09035db2d5ee2f400f /test/name-test/run-test-systemserver.sh
parent6a2ee6bd4acd68ec4f28fa397543079d8cab77cc (diff)
parentc1c801dcb5e6470e9327195c89ee2da6e505127b (diff)
downloaddbus-0c9ed253893faa13313fee30ce6dbf40a0339035.tar.gz
Merge branch 'master' of git://anonscm.debian.org/pkg-utopia/dbus
Conflicts: debian/changelog debian/dbus.postinst
Diffstat (limited to 'test/name-test/run-test-systemserver.sh')
-rwxr-xr-xtest/name-test/run-test-systemserver.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/name-test/run-test-systemserver.sh b/test/name-test/run-test-systemserver.sh
index afd1f045..90c03723 100755
--- a/test/name-test/run-test-systemserver.sh
+++ b/test/name-test/run-test-systemserver.sh
@@ -30,6 +30,11 @@ if test -n "$DBUS_TEST_MONITOR"; then
dbus-monitor --session &
fi
+XDG_RUNTIME_DIR="$DBUS_TOP_BUILDDIR"/test/XDG_RUNTIME_DIR
+test -d "$XDG_RUNTIME_DIR" || mkdir "$XDG_RUNTIME_DIR"
+chmod 0700 "$XDG_RUNTIME_DIR"
+export XDG_RUNTIME_DIR
+
echo "running test-expected-echo-fail"
${DBUS_TOP_BUILDDIR}/libtool --mode=execute $DEBUG $DBUS_TOP_BUILDDIR/tools/dbus-send --print-reply --dest=org.freedesktop.DBus.TestSuiteEchoService /org/freedesktop/TestSuite org.freedesktop.TestSuite.Echo string:hi >echo-error-output.tmp 2>&1
if ! grep -q 'DBus.Error' echo-error-output.tmp; then