2009-04-14 20:21:05 +00:00
|
|
|
#include "../check_includes.h"
|
|
|
|
|
2007-06-11 21:36:57 +00:00
|
|
|
#include <stasis/transactional.h>
|
2008-04-13 04:02:57 +00:00
|
|
|
#include <stasis/latches.h>
|
|
|
|
#include <stasis/page.h>
|
2007-06-11 21:36:57 +00:00
|
|
|
#include <stasis/bufferManager.h>
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2004-07-15 00:42:36 +00:00
|
|
|
#include <sched.h>
|
|
|
|
#include <assert.h>
|
|
|
|
|
2006-08-10 23:35:21 +00:00
|
|
|
#define LOG_NAME "check_bufferManager.log"
|
|
|
|
#ifdef LONG_TEST
|
2006-09-25 22:27:13 +00:00
|
|
|
|
2007-04-21 05:48:27 +00:00
|
|
|
#define THREAD_COUNT 100
|
|
|
|
#define NUM_PAGES ((MAX_BUFFER_SIZE * 3)/2) // Otherwise, we run out of disk cache, and it takes forever to complete...
|
2006-08-11 19:31:42 +00:00
|
|
|
#define PAGE_MULT 10 // This tells the system to only use every 10'th page, allowing us to quickly check >2 GB, >4 GB safeness.
|
|
|
|
|
2008-09-29 14:38:19 +00:00
|
|
|
#define READS_PER_THREAD (NUM_PAGES * 5)
|
|
|
|
#define RECORDS_PER_THREAD (NUM_PAGES * 5)
|
2006-09-13 19:53:45 +00:00
|
|
|
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
#else
|
2006-08-10 23:35:21 +00:00
|
|
|
#define THREAD_COUNT 25
|
2008-09-30 17:49:39 +00:00
|
|
|
#define NUM_PAGES ((MAX_BUFFER_SIZE * 3)/2)
|
2006-08-11 19:31:42 +00:00
|
|
|
#define PAGE_MULT 1000
|
|
|
|
|
2008-09-30 17:49:39 +00:00
|
|
|
#define READS_PER_THREAD (NUM_PAGES * 2)
|
|
|
|
#define RECORDS_PER_THREAD (NUM_PAGES * 2)
|
2006-08-11 19:31:42 +00:00
|
|
|
|
2006-08-10 23:35:21 +00:00
|
|
|
#endif
|
2006-08-11 19:31:42 +00:00
|
|
|
|
2006-09-25 22:27:13 +00:00
|
|
|
#define MAX_TRANS_LENGTH 100 // Number of writes per transaction. Keeping this low allows truncation.
|
|
|
|
|
2007-03-10 01:29:43 +00:00
|
|
|
long myrandom(long x) {
|
|
|
|
double xx = x;
|
|
|
|
double r = random();
|
|
|
|
double max = ((uint64_t)RAND_MAX)+1;
|
|
|
|
max /= xx;
|
|
|
|
return (long)((r/max));
|
|
|
|
}
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
void initializePages() {
|
2007-06-07 21:53:09 +00:00
|
|
|
|
|
|
|
int i;
|
2004-07-20 00:15:17 +00:00
|
|
|
|
2004-07-20 03:40:57 +00:00
|
|
|
printf("Initialization starting\n"); fflush(NULL);
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
for(i = 0 ; i < NUM_PAGES; i++) {
|
2004-07-20 03:40:57 +00:00
|
|
|
Page * p;
|
2004-07-20 00:15:17 +00:00
|
|
|
recordid rid;
|
2006-08-11 19:31:42 +00:00
|
|
|
rid.page = PAGE_MULT * (i+1);
|
2004-07-20 00:15:17 +00:00
|
|
|
rid.slot = 0;
|
|
|
|
rid.size = sizeof(int);
|
2007-06-07 21:53:09 +00:00
|
|
|
p = loadPage(-1, rid.page);
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2007-06-07 21:53:09 +00:00
|
|
|
assert(p->id != -1);
|
|
|
|
writelock(p->rwlatch,0);
|
2007-10-02 00:18:33 +00:00
|
|
|
stasis_slotted_initialize_page(p);
|
|
|
|
stasis_record_alloc_done(-1, p, rid);
|
|
|
|
int * buf = (int*)stasis_record_write_begin(-1, p, rid);
|
2007-06-07 21:53:09 +00:00
|
|
|
*buf = i;
|
2008-09-30 17:49:39 +00:00
|
|
|
stasis_record_write_done(-1,p,rid,(void*)buf);
|
2007-10-02 00:18:33 +00:00
|
|
|
stasis_page_lsn_write(-1, p, 0);
|
2007-06-07 21:53:09 +00:00
|
|
|
unlock(p->rwlatch);
|
|
|
|
releasePage(p);
|
2004-07-20 00:15:17 +00:00
|
|
|
}
|
2007-06-07 21:53:09 +00:00
|
|
|
|
2004-07-20 03:40:57 +00:00
|
|
|
printf("Initialization complete.\n"); fflush(NULL);
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void * workerThread(void * p) {
|
|
|
|
int i;
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
for(i = 0 ; i < READS_PER_THREAD; i++) {
|
|
|
|
recordid rid;
|
|
|
|
int j;
|
2004-07-15 00:42:36 +00:00
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
int k = (int) (((double)NUM_PAGES)*rand()/(RAND_MAX+1.0));
|
2004-07-21 02:13:28 +00:00
|
|
|
Page * p;
|
2006-08-10 23:35:21 +00:00
|
|
|
if(! (i % (READS_PER_THREAD / 10)) ) {
|
|
|
|
printf("%d", i / (READS_PER_THREAD / 10)); fflush(NULL);
|
2004-07-20 00:15:17 +00:00
|
|
|
}
|
2004-07-15 00:42:36 +00:00
|
|
|
|
2006-08-11 19:31:42 +00:00
|
|
|
rid.page = PAGE_MULT * (k+1);
|
2004-07-20 00:15:17 +00:00
|
|
|
rid.slot = 0;
|
|
|
|
rid.size = sizeof(int);
|
|
|
|
|
2005-02-10 03:51:09 +00:00
|
|
|
p = loadPage(-1, rid.page);
|
2008-09-29 04:30:21 +00:00
|
|
|
readlock(p->rwlatch,0);
|
2007-10-02 00:18:33 +00:00
|
|
|
stasis_record_read(1, p, rid, (byte*)&j);
|
2008-09-29 04:30:21 +00:00
|
|
|
unlock(p->rwlatch);
|
2004-07-23 20:21:44 +00:00
|
|
|
releasePage(p);
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
assert(k == j);
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
2004-10-06 06:08:09 +00:00
|
|
|
static pthread_mutex_t ralloc_mutex;
|
2004-07-21 02:13:28 +00:00
|
|
|
void * workerThreadWriting(void * q) {
|
2004-07-20 03:40:57 +00:00
|
|
|
|
2004-07-21 02:13:28 +00:00
|
|
|
int offset = *(int*)q;
|
2007-10-30 16:26:29 +00:00
|
|
|
recordid * rids;
|
|
|
|
rids = malloc(RECORDS_PER_THREAD * sizeof(recordid));
|
2006-09-25 22:27:13 +00:00
|
|
|
|
|
|
|
int xid = Tbegin();
|
|
|
|
int num_ops = 0;
|
|
|
|
|
2004-07-20 03:40:57 +00:00
|
|
|
for(int i = 0 ; i < RECORDS_PER_THREAD; i++) {
|
2006-06-16 00:05:44 +00:00
|
|
|
|
2006-09-25 22:27:13 +00:00
|
|
|
rids[i] = Talloc(xid, sizeof(int));
|
2004-07-21 02:13:28 +00:00
|
|
|
/* printf("\nRID:\t%d,%d\n", rids[i].page, rids[i].slot); */
|
2004-07-23 20:21:44 +00:00
|
|
|
/* fflush(NULL); */
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2006-08-10 23:35:21 +00:00
|
|
|
if(! (i % (RECORDS_PER_THREAD/10)) ) {
|
|
|
|
printf("A%d", i / (RECORDS_PER_THREAD/10)); fflush(NULL);
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
}
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
if(num_ops == MAX_TRANS_LENGTH) {
|
2006-09-25 22:27:13 +00:00
|
|
|
num_ops = 0;
|
|
|
|
Tcommit(xid);
|
|
|
|
xid = Tbegin();
|
2008-09-30 17:49:39 +00:00
|
|
|
} else {
|
2006-09-25 22:27:13 +00:00
|
|
|
num_ops++;
|
|
|
|
}
|
2004-07-23 20:21:44 +00:00
|
|
|
/* sched_yield(); */
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
|
|
|
for(int i = 0; i < RECORDS_PER_THREAD; i++) {
|
2004-07-21 02:13:28 +00:00
|
|
|
int val = (i * 10000) + offset;
|
2004-07-23 20:21:44 +00:00
|
|
|
int k;
|
2006-09-25 22:27:13 +00:00
|
|
|
Page * p = loadPage(xid, rids[i].page);
|
2004-07-23 20:21:44 +00:00
|
|
|
|
|
|
|
assert(p->id == rids[i].page);
|
|
|
|
|
|
|
|
for(k = 0; k < 100; k++) {
|
|
|
|
assert(p->id == rids[i].page);
|
|
|
|
}
|
2008-09-29 04:30:21 +00:00
|
|
|
writelock(p->rwlatch,0);
|
2004-07-23 20:21:44 +00:00
|
|
|
/* sched_yield(); */
|
2008-09-30 17:49:39 +00:00
|
|
|
assert(stasis_record_length_read(xid,p,rids[i]) == sizeof(int));
|
2008-10-01 15:57:29 +00:00
|
|
|
lsn_t lsn = stasis_page_lsn_read(p);
|
|
|
|
assert(lsn);
|
|
|
|
p->LSN --; // XXX HACK -- Sooner or later this will break...
|
2009-04-14 20:21:05 +00:00
|
|
|
stasis_record_write(1, p, lsn, rids[i], (byte*)&val);
|
2008-10-01 15:57:29 +00:00
|
|
|
stasis_page_lsn_write(1,p,lsn);
|
2008-09-29 04:30:21 +00:00
|
|
|
unlock(p->rwlatch);
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
assert(p->id == rids[i].page);
|
|
|
|
releasePage(p);
|
2004-07-20 03:40:57 +00:00
|
|
|
|
2006-08-10 23:35:21 +00:00
|
|
|
if(! (i % (RECORDS_PER_THREAD/10)) ) {
|
|
|
|
printf("W%d", i / (RECORDS_PER_THREAD/10)); fflush(NULL);
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
2004-07-21 02:13:28 +00:00
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
/* sched_yield(); */
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
|
|
|
for(int i = 0; i < RECORDS_PER_THREAD; i++) {
|
|
|
|
int val;
|
2004-07-21 02:13:28 +00:00
|
|
|
Page * p;
|
2004-07-20 03:40:57 +00:00
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
|
2006-09-25 22:27:13 +00:00
|
|
|
p = loadPage(xid, rids[i].page);
|
2008-09-30 17:49:39 +00:00
|
|
|
assert(p->id == rids[i].page);
|
2008-09-29 04:30:21 +00:00
|
|
|
writelock(p->rwlatch,0);
|
2008-09-30 17:49:39 +00:00
|
|
|
assert(stasis_record_length_read(xid,p,rids[i]) == sizeof(int));
|
2009-04-14 20:21:05 +00:00
|
|
|
stasis_record_read(1, p, rids[i], (byte*)&val);
|
2008-09-29 04:30:21 +00:00
|
|
|
unlock(p->rwlatch);
|
2004-07-23 20:21:44 +00:00
|
|
|
|
|
|
|
releasePage(p);
|
2004-07-20 03:40:57 +00:00
|
|
|
|
2006-08-10 23:35:21 +00:00
|
|
|
if(! (i % (RECORDS_PER_THREAD/10))) {
|
|
|
|
printf("R%d", i / (RECORDS_PER_THREAD/10)); fflush(NULL);
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-07-21 02:13:28 +00:00
|
|
|
assert(val == (i * 10000)+offset);
|
2004-07-20 03:40:57 +00:00
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
/* sched_yield(); */
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-09-25 22:27:13 +00:00
|
|
|
Tcommit(xid);
|
2007-10-30 16:26:29 +00:00
|
|
|
free(rids);
|
2004-07-20 03:40:57 +00:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
START_TEST(pageSingleThreadTest) {
|
|
|
|
Tinit();
|
|
|
|
|
|
|
|
initializePages();
|
|
|
|
|
2004-07-23 20:21:44 +00:00
|
|
|
printf("Initialize pages returned.\n"); fflush(NULL);
|
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
/* sleep(100000000); */
|
|
|
|
|
|
|
|
workerThread(NULL);
|
2004-07-15 00:42:36 +00:00
|
|
|
|
2004-07-20 00:15:17 +00:00
|
|
|
Tdeinit();
|
|
|
|
} END_TEST
|
2004-07-15 00:42:36 +00:00
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
/**
|
|
|
|
@test
|
2004-07-15 00:42:36 +00:00
|
|
|
|
|
|
|
Spawns a bunch of threads, and has each one randomly load pages off of the disk.
|
|
|
|
|
|
|
|
The pages are inialized with unique values that are checked by the
|
|
|
|
threads as they load the pages.
|
|
|
|
|
|
|
|
In order to be effective, this test must create enough pages on
|
|
|
|
disk to make sure that loadPagePtr will eventually have to kick
|
|
|
|
pages.
|
|
|
|
|
|
|
|
*/
|
2004-07-20 00:15:17 +00:00
|
|
|
START_TEST(pageLoadTest) {
|
|
|
|
pthread_t workers[THREAD_COUNT];
|
|
|
|
int i;
|
|
|
|
|
|
|
|
Tinit();
|
|
|
|
|
|
|
|
initializePages();
|
|
|
|
|
|
|
|
for(i = 0; i < THREAD_COUNT; i++) {
|
|
|
|
pthread_create(&workers[i], NULL, workerThread, NULL);
|
|
|
|
}
|
|
|
|
for(i = 0; i < THREAD_COUNT; i++) {
|
|
|
|
pthread_join(workers[i], NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
Tdeinit();
|
2004-07-15 00:42:36 +00:00
|
|
|
} END_TEST
|
|
|
|
|
2004-07-20 03:40:57 +00:00
|
|
|
START_TEST(pageSingleThreadWriterTest) {
|
|
|
|
int i = 100;
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2004-07-20 03:40:57 +00:00
|
|
|
Tinit();
|
2004-10-06 06:08:09 +00:00
|
|
|
pthread_mutex_init(&ralloc_mutex, NULL);
|
2004-07-20 03:40:57 +00:00
|
|
|
workerThreadWriting(&i);
|
2004-10-06 06:08:09 +00:00
|
|
|
pthread_mutex_destroy(&ralloc_mutex);
|
2004-07-20 03:40:57 +00:00
|
|
|
|
|
|
|
Tdeinit();
|
|
|
|
}END_TEST
|
|
|
|
|
|
|
|
START_TEST(pageThreadedWritersTest) {
|
2006-08-10 23:35:21 +00:00
|
|
|
pthread_t workers[THREAD_COUNT];
|
2004-07-20 03:40:57 +00:00
|
|
|
int i;
|
|
|
|
|
|
|
|
Tinit();
|
2004-10-06 06:08:09 +00:00
|
|
|
pthread_mutex_init(&ralloc_mutex, NULL);
|
2006-08-10 23:35:21 +00:00
|
|
|
for(i = 0; i < THREAD_COUNT; i++) {
|
2004-07-21 02:13:28 +00:00
|
|
|
int * j = malloc(sizeof(int));
|
|
|
|
*j = i;
|
|
|
|
pthread_create(&workers[i], NULL, workerThreadWriting, j);
|
2004-07-20 03:40:57 +00:00
|
|
|
}
|
2006-08-10 23:35:21 +00:00
|
|
|
for(i = 0; i < THREAD_COUNT; i++) {
|
2004-07-20 03:40:57 +00:00
|
|
|
pthread_join(workers[i], NULL);
|
|
|
|
}
|
2004-10-06 06:08:09 +00:00
|
|
|
pthread_mutex_destroy(&ralloc_mutex);
|
2004-07-20 03:40:57 +00:00
|
|
|
Tdeinit();
|
|
|
|
}END_TEST
|
|
|
|
|
2007-03-10 01:29:43 +00:00
|
|
|
//#define PINNED_PAGE_COUNT (MAX_BUFFER_SIZE - 1)
|
2007-03-11 07:55:00 +00:00
|
|
|
#define PINNED_PAGE_COUNT ((MAX_BUFFER_SIZE - 1) / THREAD_COUNT)
|
|
|
|
#define MAX_PAGE_ID (MAX_BUFFER_SIZE * 2)
|
2008-09-29 14:20:43 +00:00
|
|
|
#ifdef LONG_TEST
|
|
|
|
#define BLIND_ITERS 100000
|
|
|
|
#else
|
2007-03-11 07:55:00 +00:00
|
|
|
#define BLIND_ITERS 1000000
|
2008-09-29 14:20:43 +00:00
|
|
|
#endif
|
2009-04-14 20:21:05 +00:00
|
|
|
void * blindRandomWorker(void * v) {
|
2007-03-11 07:55:00 +00:00
|
|
|
// int idx = *(int*)v; /// Don't need index; want pinned pages to overlap!
|
2007-03-10 01:29:43 +00:00
|
|
|
|
2008-09-29 04:30:21 +00:00
|
|
|
pageid_t * pageids = malloc(PINNED_PAGE_COUNT * sizeof(pageid_t));
|
2007-03-10 01:29:43 +00:00
|
|
|
Page ** pages = calloc(PINNED_PAGE_COUNT, sizeof(Page*));
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < PINNED_PAGE_COUNT; i++) {
|
2007-03-10 01:29:43 +00:00
|
|
|
pageids[i] = -1;
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < BLIND_ITERS; i ++) {
|
2007-03-10 01:29:43 +00:00
|
|
|
int j = myrandom(PINNED_PAGE_COUNT);
|
|
|
|
if(pageids[j] == -1) {
|
|
|
|
pageids[j] = myrandom(MAX_PAGE_ID);
|
|
|
|
pages[j] = loadPage(-1, pageids[j]);
|
|
|
|
assert(pages[j]->id == pageids[j]);
|
2009-04-14 20:21:05 +00:00
|
|
|
} else {
|
2007-03-11 07:55:00 +00:00
|
|
|
// dirtyPages_add(pages[j]); // Shouldn't affect buffermanager too much...
|
2008-09-29 04:30:21 +00:00
|
|
|
assert(pages[j]->id == pageids[j]);
|
2007-03-10 01:29:43 +00:00
|
|
|
releasePage(pages[j]);
|
|
|
|
pageids[j] = -1;
|
|
|
|
pages[j] = 0;
|
|
|
|
}
|
|
|
|
}
|
2007-03-11 07:55:00 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
START_TEST(pageBlindRandomTest) {
|
2007-03-11 07:55:00 +00:00
|
|
|
|
|
|
|
Tinit();
|
|
|
|
|
|
|
|
blindRandomWorker(0);
|
|
|
|
|
|
|
|
Tdeinit();
|
|
|
|
} END_TEST
|
2009-04-14 20:21:05 +00:00
|
|
|
START_TEST(pageBlindThreadTest) {
|
2007-03-11 07:55:00 +00:00
|
|
|
|
|
|
|
Tinit();
|
|
|
|
|
|
|
|
printf("Spawning threads now.\n"); fflush(stdout);
|
|
|
|
|
2008-09-29 04:30:21 +00:00
|
|
|
printf("each thread pins %d pages (total: %d)\n", PINNED_PAGE_COUNT, PINNED_PAGE_COUNT*THREAD_COUNT);
|
|
|
|
|
2007-03-11 07:55:00 +00:00
|
|
|
pthread_t workers[THREAD_COUNT];
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < THREAD_COUNT; i++) {
|
2007-03-11 07:55:00 +00:00
|
|
|
pthread_create(&workers[i], NULL, blindRandomWorker, NULL);
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < THREAD_COUNT; i++) {
|
2007-03-11 07:55:00 +00:00
|
|
|
pthread_join(workers[i], NULL);
|
|
|
|
}
|
2007-03-10 01:29:43 +00:00
|
|
|
|
|
|
|
Tdeinit();
|
|
|
|
} END_TEST
|
|
|
|
|
2004-07-15 00:42:36 +00:00
|
|
|
Suite * check_suite(void) {
|
2004-07-20 03:40:57 +00:00
|
|
|
Suite *s = suite_create("bufferManager");
|
2004-07-15 00:42:36 +00:00
|
|
|
/* Begin a new test */
|
2004-07-20 03:40:57 +00:00
|
|
|
TCase *tc = tcase_create("multithreaded");
|
2008-10-01 17:59:16 +00:00
|
|
|
tcase_set_timeout(tc, 3*3600); // three hour timeout
|
2004-07-15 00:42:36 +00:00
|
|
|
/* Sub tests are added, one per line, here */
|
2008-09-30 17:49:39 +00:00
|
|
|
tcase_add_test(tc, pageSingleThreadTest);
|
2006-09-25 22:27:13 +00:00
|
|
|
tcase_add_test(tc, pageSingleThreadWriterTest);
|
2008-09-30 17:49:39 +00:00
|
|
|
tcase_add_test(tc, pageLoadTest);
|
|
|
|
tcase_add_test(tc, pageThreadedWritersTest);
|
|
|
|
tcase_add_test(tc, pageBlindRandomTest);
|
2007-03-11 07:55:00 +00:00
|
|
|
tcase_add_test(tc, pageBlindThreadTest);
|
2006-09-27 20:35:08 +00:00
|
|
|
|
2004-07-15 00:42:36 +00:00
|
|
|
/* --------------------------------------------- */
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2004-07-15 00:42:36 +00:00
|
|
|
tcase_add_checked_fixture(tc, setup, teardown);
|
|
|
|
|
|
|
|
|
|
|
|
suite_add_tcase(s, tc);
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "../check_setup.h"
|