Giter VIP home page Giter VIP logo

Comments (4)

wsobel avatar wsobel commented on June 19, 2024

this tests the logger file max size. it's a simple string parser, should not fail.

debug the test.

  • W

Sent from my iPad

On Feb 1, 2015, at 04:00, Subhendu Ghosh [email protected] wrote:

I am trying to run test on Fedora 21 with gcc (GCC) 4.9.2. The Following test is failing:

Test name: ConfigTest::testMaxSize
equality assertion failed

Expected: 15360
Actual : 150
Failures !!!
Run: 201 Failure total: 1 Failures: 1 Errors: 0


Reply to this email directly or view it on GitHub.

from cppagent.

codenamesubho avatar codenamesubho commented on June 19, 2024

I tried debugging. Seems like the mConfig->loadConfig(logger) is not loading the config properly or having trouble flushing the old value. I tried changing the istringstream logger("logger_config {"max_size = 150\n"}\n"); max_size value. Despite different consecutive sizes of 15K , 15M , 15G It always tested with the first value set as max_size. So max_size is always 150. Therefore the first test for 150 passes but rest for 15K , 15M, 15G fails.

from cppagent.

wsobel avatar wsobel commented on June 19, 2024

This is because of some experimental code I just added to monitor the config files and do a warm start if they change. I do not roll the logger on a warm start. This has nothing to do with fedora.

Change the test to create a new config object for each test. This will fix the issue.

This was a quick test I put in for a user to support auto agent configuration.

Sent from my iPhone

On Feb 1, 2015, at 11:16, Subhendu Ghosh [email protected] wrote:

I tried debugging. Seems like the mConfig->loadConfig(logger) is not loading the config properly or having trouble flushing the old value. I tried changing the istringstream logger("logger_config {"max_size = 150\n"}\n"); max_size value. Despite different consecutive sizes of 15K , 15M , 15G It always tested with the first value set as max_size. So max_size is always 150.


Reply to this email directly or view it on GitHub.

from cppagent.

wsobel avatar wsobel commented on June 19, 2024

Fixed test and recreated agent configuration object each time.

from cppagent.

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.