summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorbustico2009-10-08 14:51:16 +0000
committerbustico2009-10-08 14:51:16 +0000
commit39a17f46065f26c1056a9cb4e3f9a6fdf18bba41 (patch)
treedc002d29108bd6c43184d21228024df71012c21a /tools
parent77aac96aaccb60bc87e721efd571988272882771 (diff)
downloadivy-c-39a17f46065f26c1056a9cb4e3f9a6fdf18bba41.zip
ivy-c-39a17f46065f26c1056a9cb4e3f9a6fdf18bba41.tar.gz
ivy-c-39a17f46065f26c1056a9cb4e3f9a6fdf18bba41.tar.bz2
ivy-c-39a17f46065f26c1056a9cb4e3f9a6fdf18bba41.tar.xz
fix -p (postpend) option of ivythroughtput : uniq regexp should match
Diffstat (limited to 'tools')
-rw-r--r--tools/ivythroughput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ivythroughput.cpp b/tools/ivythroughput.cpp
index d7595b7..692c639 100644
--- a/tools/ivythroughput.cpp
+++ b/tools/ivythroughput.cpp
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
"\t -t \t type of test : ml or ml2 (memory leak) or tp (throughput)\n"
"\t -r \t regexfile\tread list of regexp's from file (default to testivy/regexp.txt)\n"
"\t -R \t restrict to R firsts regexps instead of all the regexp in the regexp file \n"
- "\t -p \t each client will prepend regexp with uniq string to "
+ "\t -p \t each client will postpend regexp with uniq string to "
"simulate N clients with differents regexps\n"
"\t -m \t messageFile\tread list of messages from file (default to testivy/messages.ivy)\n"
"\t -M \t restrict to M firsts messages instead of all the message in the message file \n"
@@ -289,7 +289,7 @@ void recepteur_tp (const char* bus, KindOfTest kod, unsigned int inst,
for (iter=regexps.begin(); iter != regexps.end(); iter++) {
debugInt++;
string reg = *iter;
- if (regexpAreUniq) { (reg += " ") += stream.str();}
+ if (regexpAreUniq) { ((reg += "(") += stream.str()) += ")?";}
IvyBindMsg (recepteurCB, (void *) inst, reg.c_str());
}
IvyBindMsg (startOfSeqCB, NULL, "^start(OfSequence)");