GenericExperiment: limit output logger buffer

Limit the serial-output logger buffer to prevent overly large memory
consumption in case the target system ends up, e.g., in an endless loop.
The buffer is limited to (golden-run output size)+1 to be able to detect
the case when the target system makes a correct output but faultily adds
extra characters afterwards.

Change-Id: I50c082f8fb09a702d87ab83732ca3e3463c46597
This commit is contained in:
Horst Schirmeier
2016-02-26 09:43:14 +01:00
parent e08deef9d5
commit 5bd7c4a9c5
3 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,7 @@ class GenericExperiment : public fail::DatabaseExperiment {
bool enabled_e9_sol;
std::string e9_file;
SerialOutputLogger e9_sol;
std::vector<char> e9_goldenrun;
bool enabled_mem_text;
fail::MemAccessListener l_mem_text;