projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db3e8f2
)
Don't run the benchmark by default
author
Ran Benita
<ran234@gmail.com>
Fri, 18 May 2012 15:09:50 +0000
(18:09 +0300)
committer
Ran Benita
<ran234@gmail.com>
Sun, 20 May 2012 17:31:19 +0000
(20:31 +0300)
For people running 'make check' on every compilation, this can be
a nuisance.
Signed-off-by: Ran Benita <ran234@gmail.com>
test/rulescomp.c
patch
|
blob
|
history
diff --git
a/test/rulescomp.c
b/test/rulescomp.c
index
ee98f16
..
26873a6
100644
(file)
--- a/
test/rulescomp.c
+++ b/
test/rulescomp.c
@@
-26,6
+26,7
@@
authorization from the authors.
#include <assert.h>
#include <stdio.h>
+#include <string.h>
#include <time.h>
#include "xkbcommon/xkbcommon.h"
@@
-112,5
+113,6
@@
int main(int argc, char *argv[])
assert(!test_rmlvo("base", "pc105", "", "", ""));
assert(!test_rmlvo("badrules", "", "us", "", ""));
- benchmark();
+ if (argc > 1 && strcmp(argv[1], "bench") == 0)
+ benchmark();
}