07 2014 档案

摘要:kcov是在bcov基础上进行的,bcov已经很久没有维护了;首先需要下载依赖库libdwraft,然后在configure时候进行指定:./configure --with-libdwarf=/usr/local/lib然后make;make install(1)悲催的是编译过程中出现了错误‘PT... 阅读全文
posted @ 2014-07-18 16:50 唠叨阁大学士 阅读(704) 评论(0) 推荐(0)
摘要:(1)首先需要为每个被测程序的所有编译文件增加选项,如果文件太多,这无疑是灾难,可利用spec文件达到目的1 sed -i '$ a\export LD_PRELOAD=/usr/local/bin/ccover_tool/gcov_out.so' /home/ads/.bash_... 阅读全文
posted @ 2014-07-16 17:57 唠叨阁大学士 阅读(442) 评论(0) 推荐(0)
摘要:github被zf断断续续的墙掉,只能多试几次;习惯用svn了,作为git新手,把svn跟git命令对比了一下,瞬间发现好方便记忆了;(1)获取代码仓库克隆:https://github.com/cobbxia/cppcheckII.git这个命令相当于svn co $codebase(2)增加新文... 阅读全文
posted @ 2014-07-14 18:02 唠叨阁大学士 阅读(216) 评论(0) 推荐(0)
摘要:gcc -shared -o hack.so hack.c/usr/bin/ld: /tmp/ccUZREwA.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object... 阅读全文
posted @ 2014-07-14 16:24 唠叨阁大学士 阅读(8119) 评论(0) 推荐(0)
摘要:namenode启动参数:-Xmx153600m -Xms153600m -Xmn4096m -verbose:gc -Xloggc:$LOG_DIR/namenode.gc.log -XX:ErrorFile=$LOG_DIR/hs_err_pid.log -XX:+PrintGCDateStam... 阅读全文
posted @ 2014-07-08 20:02 唠叨阁大学士 阅读(1179) 评论(0) 推荐(0)
摘要://使用gtest进行数据驱动的单元测试#include #include #include #include #include #include "BuildAttrDesc.h"using namespace std;using namespace testing;//定义一个结构体,用于保... 阅读全文
posted @ 2014-07-04 10:18 唠叨阁大学士 阅读(820) 评论(0) 推荐(0)