diff options
author | Martin Pool <mbp@samba.org> | 2003-03-19 02:59:18 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-03-19 02:59:18 +0000 |
commit | 54925dcc6061f4aeb9f05b10c607065a0e511d9e (patch) | |
tree | 4458d7635f1a1dc3b4135cc79981584fec1b0842 | |
parent | 736c7538412a7e9abd85cc7bc95c48f72bed4d56 (diff) | |
download | samba-54925dcc6061f4aeb9f05b10c607065a0e511d9e.tar.gz samba-54925dcc6061f4aeb9f05b10c607065a0e511d9e.tar.bz2 samba-54925dcc6061f4aeb9f05b10c607065a0e511d9e.zip |
Run test 10000 times to make measurement easier.
(This used to be commit e051789ac6cc05f8a643ea81e887d3b969cf3a27)
-rw-r--r-- | source3/torture/t_strcmp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/torture/t_strcmp.c b/source3/torture/t_strcmp.c index b510d64cf0..1d26ad22de 100644 --- a/source3/torture/t_strcmp.c +++ b/source3/torture/t_strcmp.c @@ -8,14 +8,19 @@ int main(int argc, char *argv[]) { + int i, ret; + if (argc != 3) { fprintf(stderr, "usage: %s STRING1 STRING2\n" "Compares two strings, prints the results of StrCaseCmp\n", argv[0]); return 2; } - - printf("%d\n", StrCaseCmp(argv[1], argv[2])); + + for (i = 0; i < 10000; i++) + ret = StrCaseCmp(argv[1], argv[2]); + + printf("%d\n", ret); return 0; } |