Menu

fix a bug?

Blood Chen
2001-06-01
2001-06-01
  • Blood Chen

    Blood Chen - 2001-06-01

    The test runner used to crash when you removed a test that was in the most recently used list.
    I added a line to TestRunnerDlg::updateHistoryCombo()
    {...
        if(test) ///I added
        getHistoryCombo()->AddString( test->getName().c_str() );
    ...
    }
    and
    void
    TestRunnerModel::saveSettings()
    {...
    if(test) ///I added
        saveHistoryEntry( idx, test->getName() );
    ...
    }
    It will not crash when I remove a testsuit.
    Did it fix a bug?

     
    • Baptiste Lepilleur

      Yes, this has already been reported as bug 424320.

      It is fixed in the current CVS tree. Your fix works, but I did it the other way: when a test is removed, it will not be added to the history list the next time you run TestRunner.

      You can download the last version of TestRunnerModel.cpp using the CVS web browser.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.