#include "gtest/gtest.h"#include <iostream>#include "tdb_mpool.h"TEST(tdb_mpool_test,test1){TDB_MPOOL*mp;TDB_MPFILE*mpf;pgno_tpgno;void*pgdata;// open mptdbMPoolOpen(&mp,16384,4096);// open mpftdbMPoolFileOpen(&mpf,"test.db",mp);#define TEST1_TOTAL_PAGES 100for(inti=0;i<TEST1_TOTAL_PAGES;i++){tdbMPoolFileNewPage(mpf,&pgno,pgdata);*(pgno_t*)pgdata=i;}// close mpftdbMPoolFileClose(mpf);// close mptdbMPoolClose(mp);}