summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-09-12 13:17:49 -0300
committerThiago Macieira <thiago.macieira@intel.com>2015-09-13 18:54:04 +0000
commit2187f0e7b08d872b2ff618be679a15e213b6c25d (patch)
tree7f23960eba981080fa9cc0d4b3ada9ff08b90148 /src
parenta0575a85b7042a7898e7da95e32413e6e2661b0d (diff)
Add a delimiter before "TracerPid"
Future-proofing against a future version of the Linux kernel adding a "FooTracerPid:" before the TracerPid entry. Change-Id: I42e7ef1a481840699a8dffff140347457902900f Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 7f199182f9..000470e9e5 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -2503,7 +2503,7 @@ static bool debuggerPresent()
return false;
}
buffer[size] = 0;
- const char tracerPidToken[] = "TracerPid:";
+ const char tracerPidToken[] = "\nTracerPid:";
char *tracerPid = strstr(buffer, tracerPidToken);
if (!tracerPid) {
close(fd);