From 82f6f8cf5a06c22d53db604faab25c990da29302 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 30 Oct 2008 23:43:28 +0100 Subject: [PATCH] Fixed fb-atomic.test. The test was failing whenever CONFIG_SHARED was set, because in such cases the config file constructor was called twice and the config machinery died of duplicate sections. --- ucw/fb-atomic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ucw/fb-atomic.c b/ucw/fb-atomic.c index b1179289..32c9ca9b 100644 --- a/ucw/fb-atomic.c +++ b/ucw/fb-atomic.c @@ -18,6 +18,8 @@ static uns trace; +#ifndef TEST + static struct cf_section fbatomic_config = { CF_ITEMS { CF_UNS("Trace", &trace) @@ -29,6 +31,8 @@ static void CONSTRUCTOR fbatomic_init_config(void) cf_declare_section("FBAtomic", &fbatomic_config, 1); } +#endif + #define TRACE(m...) do { if(trace) msg(L_DEBUG, "FB_ATOMIC: " m); } while(0) struct fb_atomic_file { -- 2.39.2