~~~ 111 + FILE* in; 112 + char* line = NULL; 113 + size_t len = 0; 114 + ssize_t read;
123 + ASSERT_TRUE((in = popen(cmd, "r"))); 126 + while ((read = getline(&line, &len, in)) != -1) 151 + free(line); 152 + fclose(in); ~~~
I'd like to see that in a separate class and put under mir_test as it could be useful if we need to run other benchmark programs OR use pstreams library which already does that for you.
~~~ virtual void RunGLMark2(char const* output_filename, ResultFileType file_type) ~~~ RunGLMark2 not in the style described at http://unity.ubuntu.com/mir/cppguide/index.html#Function_Names
~~~ 106 + enum ResultFileType {raw, json}; ~~~
Use enum class.
« Back to merge proposal
~~~
111 + FILE* in;
112 + char* line = NULL;
113 + size_t len = 0;
114 + ssize_t read;
123 + ASSERT_TRUE((in = popen(cmd, "r")));
126 + while ((read = getline(&line, &len, in)) != -1)
151 + free(line);
152 + fclose(in);
~~~
I'd like to see that in a separate class and put under mir_test as it could be useful if we need to run other
benchmark programs OR use pstreams library which already does that for you.
~~~ unity.ubuntu. com/mir/ cppguide/ index.html# Function_ Names
virtual void RunGLMark2(char const* output_filename, ResultFileType file_type)
~~~
RunGLMark2 not in the style described at http://
~~~
106 + enum ResultFileType {raw, json};
~~~
Use enum class.