summaryrefslogtreecommitdiffstats
path: root/dcop/tests/generate.pl
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-12-18 16:42:50 +0300
committerSlávek Banko <slavek.banko@axis.cz>2017-01-29 02:27:15 +0100
commitf2d8e88f099f908075d3d7b166fdb40d9be6c1c5 (patch)
tree07b9b893ef92043960e0c6148937146c05c7ea7b /dcop/tests/generate.pl
parent57e73e9e4c61f9cfd9cc03fbbfa5970452e0e8a4 (diff)
downloadtdelibs-f2d8e88f099f908075d3d7b166fdb40d9be6c1c5.tar.gz
tdelibs-f2d8e88f099f908075d3d7b166fdb40d9be6c1c5.zip
dcop/tests: run dcop tests in a safer manner
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'dcop/tests/generate.pl')
-rwxr-xr-xdcop/tests/generate.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/dcop/tests/generate.pl b/dcop/tests/generate.pl
index 9ef1f13fc..e7e8d4fd6 100755
--- a/dcop/tests/generate.pl
+++ b/dcop/tests/generate.pl
@@ -11,7 +11,8 @@ my $OBJECT_NAME = 'TestInterface';
sub shell_header {
- print SHELL "TEST_APP=\`$DCOP 'TestApp-*'\`\n";
+ print SHELL "TEST_APP=\"\${DCOP_TEST_PID:+TestApp-\$DCOP_TEST_PID\}\"\n" .
+ "TEST_APP=\"\${TEST_APP:-\$($DCOP 'TestApp-*')}\"\n";
}
sub shell_footer {
print SHELL "$DCOP $TEST_APP 'MainApplication-Interface' quit";