projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update doc/common
[yaz-moved-to-github.git]
/
test
/
test_timing.c
diff --git
a/test/test_timing.c
b/test/test_timing.c
index
edbca1d
..
ba5eff9
100644
(file)
--- a/
test/test_timing.c
+++ b/
test/test_timing.c
@@
-1,7
+1,10
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-41,11
+44,11
@@
static void tst(void)
user = yaz_timing_get_user(t);
YAZ_CHECK(user == -1.0 || user >= 0.0);
user = yaz_timing_get_user(t);
YAZ_CHECK(user == -1.0 || user >= 0.0);
- sys = yaz_timing_get_sys(t);
+ sys = yaz_timing_get_sys(t);
YAZ_CHECK(sys == -1.0 || sys >= 0.0);
yaz_log(YLOG_LOG, "real=%f user=%f sys=%f", real, user, sys);
YAZ_CHECK(sys == -1.0 || sys >= 0.0);
yaz_log(YLOG_LOG, "real=%f user=%f sys=%f", real, user, sys);
-
+
yaz_timing_destroy(&t);
YAZ_CHECK(!t);
}
yaz_timing_destroy(&t);
YAZ_CHECK(!t);
}