Fix test failure in test_libbcc (#603)
authorBrenden Blanco <bblanco@gmail.com>
Fri, 8 Jul 2016 23:21:38 +0000 (16:21 -0700)
committer4ast <alexei.starovoitov@gmail.com>
Fri, 8 Jul 2016 23:21:38 +0000 (16:21 -0700)
commit52cd371306705c39ad8c06fef195f6c4cdebf664
tree9dc6eb950e8c02672eb1d2843258d010aad14bc6
parent966edb2184023f5d5a8ff2528712433aa7206b24
Fix test failure in test_libbcc (#603)

On some systems, was seeing a failure at tests/cc/test_c_api.cc:172 due
to failure to open the /tmp/perf-pid.map file. Looking through the code,
narrowed it down to an invalid use of c_str() on a temporary
std::string. Fix it by storing the string in a variable.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
tests/cc/test_c_api.cc