Giter Site home page Giter Site logo

Run unittest failed about eventpp HOT 4 CLOSED

wqking avatar wqking commented on May 26, 2024
Run unittest failed

from eventpp.

Comments (4)

wqking avatar wqking commented on May 26, 2024

Thanks for the bug report. It's a racing condition in newly added function CallbackListBase::ownsHandle. I've fixed it.
Note: ownsHandle is called in assert which is only available in debug mode. So this bug can only be reproduced in debug mode, not release mode in which assert is gone.

from eventpp.

henaiguo avatar henaiguo commented on May 26, 2024

OK, I see. But, unittest still failed to run. it seems to be a deadlock

image

This is the result of pressing ctrl+c after waiting for a while

from eventpp.

wqking avatar wqking commented on May 26, 2024

No, it's not dead lock, it's just super slow in debug mode. In debug mode, in CallbackList::remove, there is an assertion that iterates the whole list, which has 1M items in that test. That results 1M*1M checks and never finish. I'm thinking of removing the assertion.

from eventpp.

wqking avatar wqking commented on May 26, 2024

I removed the assertion, the unit tests should not be very slow even in debug mode.

from eventpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.