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 <ran234@gmail.com>
master
Ran Benita 2012-05-18 18:09:50 +03:00
parent db3e8f2c08
commit beccc37509
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}