From: Ran Benita Date: Fri, 18 May 2012 15:09:50 +0000 (+0300) Subject: Don't run the benchmark by default X-Git-Tag: xkbcommon-0.2.0~569 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beccc375095c921b8c212b0f992ae88c87ca95ca;p=platform%2Fupstream%2Flibxkbcommon.git Don't run the benchmark by default For people running 'make check' on every compilation, this can be a nuisance. Signed-off-by: Ran Benita --- diff --git a/test/rulescomp.c b/test/rulescomp.c index ee98f16..26873a6 100644 --- a/test/rulescomp.c +++ b/test/rulescomp.c @@ -26,6 +26,7 @@ authorization from the authors. #include #include +#include #include #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(); }