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.
static uns trace;
+#ifndef TEST
+
static struct cf_section fbatomic_config = {
CF_ITEMS {
CF_UNS("Trace", &trace)
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 {