[sqlite] setup C code with cppunit using test db

2015-08-11 Thread Richard Hipp
On 8/11/15, Adam Devita wrote: > > I get an error stating that MREMAP_MAYMOVE is undeclared. (line 29874) > I don't see in the source or .h file where it would be defined. > It's defined in /usr/include/linux/mman.h on my LTS14.04 box. And that file is included from /usr/include/mmap.h which is

[sqlite] setup C code with cppunit using test db

2015-08-11 Thread Adam Devita
Good day, I'd like to test some C code using the cpputest package. The code is a simple transaction where 1 prepared update statement gets various parameters bound and stepped in a loop. I'd like to make a test db so I can ensure that the code will work (and there are no syntax errors in the sql