diff options
author | Gergely Nagy <algernon@balabit.hu> | 2012-08-11 02:41:18 +0200 |
---|---|---|
committer | Gergely Nagy <algernon@balabit.hu> | 2012-08-11 02:41:18 +0200 |
commit | 719f73c920523da484bf399761df19c044730284 (patch) | |
tree | 244a7c694906d8bebef14c9436eacaf2473dbcb6 | |
parent | bffa5492a7831c2351bc3fd5b043643e77bf29be (diff) | |
download | libumberlog-719f73c920523da484bf399761df19c044730284.tar.gz libumberlog-719f73c920523da484bf399761df19c044730284.tar.xz libumberlog-719f73c920523da484bf399761df19c044730284.zip |
Fix test_perf
test_perf was still relying on the old behaviour of ul_openlog(): no
more, it uses ul_set_log_flags() now.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
-rw-r--r-- | t/test_perf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/test_perf.c b/t/test_perf.c index f1eb628..c729c4b 100644 --- a/t/test_perf.c +++ b/t/test_perf.c @@ -30,7 +30,8 @@ test_perf_simple (int flags, unsigned long cnt) struct timespec st, et, dt; const char *fls; - openlog ("umberlog/test_perf_simple", flags, LOG_LOCAL0); + ul_openlog ("umberlog/test_perf_simple", 0, LOG_LOCAL0); + ul_set_log_flags (flags); clock_gettime (CLOCK_MONOTONIC, &st); for (i = 0; i < cnt; i++) @@ -40,7 +41,7 @@ test_perf_simple (int flags, unsigned long cnt) } clock_gettime (CLOCK_MONOTONIC, &et); - closelog (); + ul_closelog (); dt = ts_diff (st, et); |