Re: [PATCH] Re: Bug 774122 - allow the testsuite to run



Hubert Figuière <hub figuiere net> a écrit:

[...]

Subject: [PATCH] Bug 774122 - Part 2: Fix crash in runtestprettyprint

The v_var dtor was calling the LogStream on the already destroyed singleton.

        * test-pretty-print.cc: create a TestObject to carry test data and move v_var
        to it to ensure its lifetime is shorter than LogStream.
        (on_variable_unfolded_with_n_children) (on_variable_v_created_empty)
        (on_variable_v_has_n_children) (on_stopped_signal): pass a TestObject.
        (test_main): create the TestObject.

This is OK to commit to master.

Thanks!

-- 
                Dodji


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]