This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 7fd565206ddfe4acb5c8c44d7aa2f6a6e4218148 (commit) from 807a49cbdebcff68b5aec305513587c3827e77c5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 7fd565206ddfe4acb5c8c44d7aa2f6a6e4218148 Author: Petri Savolainen petri.savolainen@nokia.com Date: Tue Aug 20 15:49:32 2019 +0300
test: correct getopt short option usage
Remove extra plus characters from short option string.
Only the first char needs to be '+' char: "If the first character of option string is '+' then option processing stops as soon as a nonoption argument is encountered."
Signed-off-by: Petri Savolainen petri.savolainen@nokia.com Reviewed-by: Matias Elo matias.elo@nokia.com
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 40038d57c..55e217e54 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -600,7 +600,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) {NULL, 0, NULL, 0} };
- static const char *shortopts = "+c:i:+m:t:h"; + static const char *shortopts = "+c:i:m:t:h";
appl_args->cpu_count = 1; /* use one worker by default */ appl_args->mode = APPL_MODE_PKT_SCHED; diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c index c922f7ef4..026af6ec8 100644 --- a/example/switch/odp_switch.c +++ b/example/switch/odp_switch.c @@ -756,7 +756,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) {NULL, 0, NULL, 0} };
- static const char *shortopts = "+c:+t:+a:i:h"; + static const char *shortopts = "+c:t:a:i:h";
appl_args->cpu_count = 1; /* use one worker by default */ appl_args->time = 0; /* loop forever if time to run is 0 */ diff --git a/test/performance/odp_cpu_bench.c b/test/performance/odp_cpu_bench.c index 00efb7a86..8ea064535 100644 --- a/test/performance/odp_cpu_bench.c +++ b/test/performance/odp_cpu_bench.c @@ -382,7 +382,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) {NULL, 0, NULL, 0} };
- static const char *shortopts = "+a:+c:+l:+t:h"; + static const char *shortopts = "+a:c:l:t:h";
appl_args->accuracy = 1; /* Get and print pps stats second */ appl_args->cpu_count = 1; diff --git a/test/performance/odp_pktio_ordered.c b/test/performance/odp_pktio_ordered.c index 51ec03ce9..e7383d873 100644 --- a/test/performance/odp_pktio_ordered.c +++ b/test/performance/odp_pktio_ordered.c @@ -864,7 +864,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) {NULL, 0, NULL, 0} };
- static const char *shortopts = "+c:+t:+a:i:m:d:r:f:e:h"; + static const char *shortopts = "+c:t:a:i:m:d:r:f:e:h";
appl_args->time = 0; /* loop forever if time to run is 0 */ appl_args->accuracy = DEF_STATS_INT;
-----------------------------------------------------------------------
Summary of changes: example/packet/odp_pktio.c | 2 +- example/switch/odp_switch.c | 2 +- test/performance/odp_cpu_bench.c | 2 +- test/performance/odp_pktio_ordered.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive