首页 > 数据库 >How SQLite Is Tested

How SQLite Is Tested

时间:2023-01-15 16:45:35浏览次数:61  
标签:SQLite Tested memory Valgrind How running through Linux

https://www.sqlite.org/testing.html

8.2. Valgrind

Valgrind is perhaps the most amazing and useful developer tool in the world. Valgrind is a simulator - it simulates an x86 running a Linux binary. (Ports of Valgrind for platforms other than Linux are in development, but as of this writing, Valgrind only works reliably on Linux, which in the opinion of the SQLite developers means that Linux should be the preferred platform for all software development.) As Valgrind runs a Linux binary, it looks for all kinds of interesting errors such as array overruns, reading from uninitialized memory, stack overflows, memory leaks, and so forth. Valgrind finds problems that can easily slip through all of the other tests run against SQLite. And, when Valgrind does find an error, it can dump the developer directly into a symbolic debugger at the exact point where the error occur, to facilitate a quick fix.

Because it is a simulator, running a binary in Valgrind is slower than running it on native hardware. (To a first approximation, an application running in Valgrind on a workstation will perform about the same as it would running natively on a smartphone.) So it is impractical to run the full SQLite test suite through Valgrind. However, the veryquick tests and the coverage of the TH3 tests are run through Valgrind prior to every release.


Valgrind is a free programming tool for memory debugging, memory leak detection, and profiling.

Valgrind was originally designed to be a free version of Purify for Linux on x86, but has since evolved to become a generic framework for creating dynamic analysis tools such as checkers and profilers. It has an excellent reputation and is widely used by Linux programmers.

The original author was Julian Seward. Several others have also made significant contributions; they include Cerion Armour-Brown, Jeremy Fitzhardinge, Tom Hughes, Nicholas Nethercote, Paul Mackerras, Dirk Mueller and Robert Walsh.

Valgrind may mean the main entrance to Valhalla in Norse mythology.


DO-178B, Software Considerations in Airborne Systems and Equipment Certification is a guideline dealing with the safety of safety-critical software used in certain airborne systems.

标签:SQLite,Tested,memory,Valgrind,How,running,through,Linux
From: https://www.cnblogs.com/funwithwords/p/17053693.html

相关文章

  • How To Ask Questions The Smart Way 提问的智慧
    Copyright(C)2001byEricS.Raymond中文版Copyleft2001byD.H.Grand(nOBODY/Ginux)英文版:http://www.tuxedo.org/~esr/faqs/smart-questions.html感谢Eric的耐心指点......
  • 升级python报错"You are using pip version 8.1.2, however version 22.2.2 is availa
    问题描述:在CentOS7中安装更新python-pip时,报出更新的版本是8.1.2,然而最新的版本是22.2.2的错如下:#安装pipyuminstallpython-pip#升级pippipinstall--upgradepip......
  • QSqlite 使用记录
    QSqlite使用记录一个QSqlDatabase的实例表示着一个对数据库的连接setDatabaseName("");指定文件路径,就可以操作指定的文件插入sqlite在没有显式使用事务的时候会为每......
  • Android sqlite 使用简介
    进行Android应用开发时经常会用到数据库。Android系统支持sqlite数据库,在app开发过程中很容易通过SQLiteOpenHelper使用数据库,SQLiteOpenHelper依赖于Context对象,但是基于ui......
  • Python中数据库模块(sqlite3,SQLite3)应用
    一、sqlite命令创建数据库:在控制台sqlite3name.databases查看数据库.tables查看表格名databaseName.d......
  • How Industries Are Implementing Smart Waste Management?
    Globally,theindustrialsectorgeneratesmorethan7.6billiontonsofwasteeveryyear.Becauseindustrialwastedisposalisoftencomplexandhazardous,the......
  • How to check character set in Oracle
    概述总结一下查询oracle字符集的方法解决方案方法一:SQL>SELECTvalue$FROMsys.props$WHEREname='NLS_CHARACTERSET';VALUE$----------------------------......
  • Xamarin 中使用 SQLite
    1. NuGet中安装下面两个组件sqlite-net-pclSQLitePCLRaw.bundle_green   2. 创建表格//创建表结构[Table("Valuation")]publicclassValuation......
  • Idea Show Diagarn
    总结:继承实线实线虚线继承接口绿色继承类蓝色interfaceSortedMap<K,V>extendsabstractclassAbstractMap<K,V>implementsMap<K,V>classTreeMap<K,V>ex......
  • 启动hive后,输入show databases;报错
    1、使用命令hive启动后,输入showdatabases;显示如下错误  问题解决:因为hive命令只是启动了客户端,所以我们需要先启动hive服务,再使用hive命令启动客户端#启动hive......