X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-lockfile.c;h=121b2bab83028e0fff666df9d4b6757cd1fd4172;hb=92f8ebf943aab10ad5923516a3d2803a555eed44;hp=f0f4b010a112852c673900f61f15d851c940bb5b;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;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",