单元测试工具:
1、https://www.linuxidc.com/Linux/2016-07/132857.htm
valgrind
#最常用的
//下面的参数其实也就是valgrind的默认参数
valgrind --tool=memcheck --leak-check=full ./test_bin 相当于 valgrind ./test_bin
#写文件
//-v 列出更详细的信息
/*valgrind -v --log-file=valgrind.log --tool=memcheck --leak-check=full ./test_bin*/
方法一: valgrind --log-file=valgrind.log --tool=memcheck --leak-check=full ./test_bin
方法二: valgrind --tool=memcheck --leak-check=full ./test_bin > log.txt 2>&1
https://www.cnblogs.com/ranxf/p/11413735.html
https://blog.csdn.net/pbymw8iwm/article/details/42522407
//https://blog.csdn.net/ysh1042436059/article/details/80905728
https://blog.csdn.net/dengcanjun6/article/details/54958359 //交叉编译
https://www.cnblogs.com/CodingTheFuture/p/9864960.html