summaryrefslogtreecommitdiff
path: root/tests/test-lockfile.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-08-31 10:10:13 -0700
committerBen Pfaff <blp@nicira.com>2012-08-31 10:10:13 -0700
commitdb90f94066dc645d8e777a9c43ad3f7e745393f9 (patch)
tree07a3d45df726da3bbdb30ba934d9372d522481c9 /tests/test-lockfile.c
parent079b5942276a04b2b18f1ec5bd2e07170e3ab9bd (diff)
downloadopenvswitch-db90f94066dc645d8e777a9c43ad3f7e745393f9.tar.gz
lockfile: In tests, also verify log messages.
Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'tests/test-lockfile.c')
-rw-r--r--tests/test-lockfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-lockfile.c b/tests/test-lockfile.c
index b37fd225b..fe258c249 100644
--- a/tests/test-lockfile.c
+++ b/tests/test-lockfile.c
@@ -270,11 +270,11 @@ static const struct test tests[] = {
int
main(int argc, char *argv[])
{
- extern struct vlog_module VLM_lockfile;
size_t i;
set_program_name(argv[0]);
- vlog_set_levels(&VLM_lockfile, VLF_ANY_FACILITY, VLL_ERR);
+ vlog_set_pattern(VLF_CONSOLE, "%c|%p|%m");
+ vlog_set_levels(NULL, VLF_SYSLOG, VLL_OFF);
if (argc != 2) {
ovs_fatal(0, "exactly one argument required; use \"%s help\" for help",