Project

General

Profile

Bug #1146

Weirdness in OutputCppRoot

Added by Rogers, Chris over 11 years ago. Updated almost 11 years ago.

Status:
Open
Priority:
Normal
Assignee:
Category:
Data Structure
Target version:
Start date:
04 October 2012
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

Consider the following from test_OutputCppRoot.py:

    def test_save_run_header(self):
        """ 
        test_OutputCppRoot: Try saving a run header
        """ 
        self.assertTrue(self.sub_function(
            json.dumps(self.test_run_header)
        ))
        self.test_run_header["run_number"] = 2
        for i in range(1000): # pylint:disable=W0612
            self.assertTrue(self.sub_function(
                json.dumps(self.test_run_header)
            ))
        self.test_run_header["run_number"] = 3
        self.sub_function_2(json.dumps(self.test_run_header))
        #self._save_event(json.dumps(self.test_run_header)) SEGMENTATION FAULT
        #self.output.save(json.dumps(self.test_run_header)) SEGMENTATION FAULT
        self.output.death()
        self.__check_run_header(1, 1002, 0)
        self.__check_run_header(2, 1002, 1000)

Files

valgrind.log (158 KB) valgrind.log Rogers, Chris, 12 November 2012 17:11

Also available in: Atom PDF