Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10401


Ignore:
Timestamp:
Apr 26, 2015, 3:34:57 PM (10 years ago)
Author:
landauf
Message:

fixed crash in tests with msvc & debug checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/test/util/output/OutputManagerTest.cc

    r9547 r10401  
    9898
    9999        EXPECT_FALSE(manager.getListeners().empty());
     100
     101        manager.unregisterListener(&listener);
    100102    }
    101103
     
    123125
    124126        EXPECT_FALSE(listener.getListeners().empty());
     127
     128        manager.unregisterListener(&listener);
    125129    }
    126130
     
    156160        EXPECT_EQ(level::verbose_more, manager.getCombinedAdditionalContextsLevelMask());
    157161        EXPECT_EQ(context::unittest2().mask, manager.getCombinedAdditionalContextsMask());
     162
     163        manager.unregisterListener(&listener);
    158164    }
    159165
     
    193199
    194200        EXPECT_EQ(level::internal_warning, manager.getCombinedLevelMask());
     201
     202        manager.unregisterListener(&listener);
    195203    }
    196204
     
    208216
    209217        EXPECT_EQ(level::internal_warning, manager.getCombinedAdditionalContextsLevelMask());
     218
     219        manager.unregisterListener(&listener);
    210220    }
    211221
     
    223233
    224234        EXPECT_EQ(context::unittest2().mask, manager.getCombinedAdditionalContextsMask());
     235
     236        manager.unregisterListener(&listener);
    225237    }
    226238
     
    254266        EXPECT_EQ(level::verbose | level::verbose_more | level::verbose_ultra, manager.getCombinedAdditionalContextsLevelMask());
    255267        EXPECT_EQ(context::unittest1().mask | context::unittest2().mask | context::unittest3().mask, manager.getCombinedAdditionalContextsMask());
     268
     269        manager.unregisterListener(&listener1);
     270        manager.unregisterListener(&listener2);
     271        manager.unregisterListener(&listener3);
    256272    }
    257273
     
    287303        EXPECT_TRUE(manager.acceptsOutput(level::verbose_more, context::unittest2()));
    288304        EXPECT_FALSE(manager.acceptsOutput(level::verbose_ultra, context::unittest2()));
     305
     306        manager.unregisterListener(&listener);
    289307    }
    290308
     
    302320
    303321        manager.pushMessage(level::user_status, context::unittest1(), "some output");
     322
     323        manager.unregisterListener(&listener);
    304324    }
    305325
     
    319339
    320340        manager.pushMessage(level::user_status, context::unittest1(), "some output\nand some more output\n!!!");
     341
     342        manager.unregisterListener(&listener);
    321343    }
    322344
Note: See TracChangeset for help on using the changeset viewer.