X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-lockfile.c;h=121b2bab83028e0fff666df9d4b6757cd1fd4172;hb=e6269c12f294f71c9e6a31c153a12cf26124c235;hp=f0f4b010a112852c673900f61f15d851c940bb5b;hpb=a4af00400a835eb87569ba40e21874c05e872c0f;p=openvswitch diff --git a/tests/test-lockfile.c b/tests/test-lockfile.c index f0f4b010..121b2bab 100644 --- a/tests/test-lockfile.c +++ b/tests/test-lockfile.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,7 @@ #include "process.h" #include "timeval.h" #include "util.h" +#include "vlog.h" #undef NDEBUG #include @@ -230,17 +231,18 @@ static const struct test tests[] = { TEST(lock_timeout_runs_out), TEST(lock_multiple), TEST(help), - { 0, 0 } + { NULL, NULL } #undef TEST }; int main(int argc, char *argv[]) { + extern struct vlog_module VLM_lockfile; size_t i; set_program_name(argv[0]); - time_init(); + vlog_set_levels(&VLM_lockfile, VLF_ANY_FACILITY, VLL_ERR); if (argc != 2) { ovs_fatal(0, "exactly one argument required; use \"%s help\" for help",