2006-07-20 21:54:32 +00:00
|
|
|
/*--- This software is copyrighted by the Regents of the University of
|
|
|
|
California, and other parties. The following terms apply to all files
|
|
|
|
associated with the software unless explicitly disclaimed in
|
|
|
|
individual files.
|
|
|
|
|
|
|
|
The authors hereby grant permission to use, copy, modify, distribute,
|
|
|
|
and license this software and its documentation for any purpose,
|
|
|
|
provided that existing copyright notices are retained in all copies
|
|
|
|
and that this notice is included verbatim in any distributions. No
|
|
|
|
written agreement, license, or royalty fee is required for any of the
|
|
|
|
authorized uses. Modifications to this software may be copyrighted by
|
|
|
|
their authors and need not follow the licensing terms described here,
|
|
|
|
provided that the new terms are clearly indicated on the first page of
|
|
|
|
each file where they apply.
|
|
|
|
|
|
|
|
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
|
|
|
|
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
|
|
|
|
DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
|
|
|
|
POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
|
|
|
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
|
|
|
NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND
|
|
|
|
THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
|
|
|
|
MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
|
|
|
|
GOVERNMENT USE: If you are acquiring this software on behalf of the
|
|
|
|
U.S. government, the Government shall have only "Restricted Rights" in
|
|
|
|
the software and related documentation as defined in the Federal
|
|
|
|
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you are
|
|
|
|
acquiring the software on behalf of the Department of Defense, the
|
|
|
|
software shall be classified as "Commercial Computer Software" and the
|
|
|
|
Government shall have only "Restricted Rights" as defined in Clause
|
|
|
|
252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
|
|
|
|
authors grant the U.S. Government and others acting in its behalf
|
|
|
|
permission to use and distribute the software in accordance with the
|
|
|
|
terms specified in this license.
|
|
|
|
---*/
|
2009-04-14 20:21:05 +00:00
|
|
|
#include "../check_includes.h"
|
|
|
|
|
2008-03-02 23:21:39 +00:00
|
|
|
#include <stasis/latches.h>
|
2009-04-14 20:21:05 +00:00
|
|
|
#include <stasis/transactional.h>
|
|
|
|
|
2006-07-20 21:54:32 +00:00
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
#define LOG_NAME "check_regions.log"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@test
|
|
|
|
*/
|
|
|
|
START_TEST(regions_smokeTest) {
|
|
|
|
Tinit();
|
|
|
|
int xid = Tbegin();
|
|
|
|
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t max_page = 0;
|
|
|
|
pageid_t page = TregionAlloc(xid, 100, 0);
|
2010-02-12 16:44:28 +00:00
|
|
|
assert(TregionSize(xid, page) == 100);
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t new_page = page;
|
2009-04-14 20:21:05 +00:00
|
|
|
if(new_page + 1 + 100 > max_page) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_page = new_page + 1 + 100;
|
|
|
|
}
|
|
|
|
|
2008-02-20 22:48:30 +00:00
|
|
|
new_page = TregionAlloc(xid, 1, 0);
|
2009-04-14 20:21:05 +00:00
|
|
|
if(new_page + 2 > max_page) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_page = new_page + 2;
|
|
|
|
}
|
2010-02-12 16:44:28 +00:00
|
|
|
assert(TregionSize(xid, new_page) == 1);
|
2006-07-20 21:54:32 +00:00
|
|
|
TregionDealloc(xid, page);
|
|
|
|
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t pages[50];
|
2006-07-27 00:16:24 +00:00
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 50; i++) {
|
2008-02-20 22:48:30 +00:00
|
|
|
new_page = TregionAlloc(xid, 1, 0);
|
2010-02-12 16:44:28 +00:00
|
|
|
assert(TregionSize(xid, new_page) == 1);
|
2006-07-27 00:16:24 +00:00
|
|
|
pages[i] = new_page;
|
2009-04-14 20:21:05 +00:00
|
|
|
if(new_page + 2 > max_page) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_page = new_page + 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 50; i+=2) {
|
2010-02-12 16:44:28 +00:00
|
|
|
assert(TregionSize(xid, pages[i]) == 1);
|
2006-07-27 00:16:24 +00:00
|
|
|
TregionDealloc(xid, pages[i]);
|
2006-07-20 21:54:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Tcommit(xid);
|
|
|
|
|
|
|
|
xid = Tbegin();
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 50; i+=2) {
|
2008-02-20 22:48:30 +00:00
|
|
|
new_page = TregionAlloc(xid, 1, 0);
|
2009-04-14 20:21:05 +00:00
|
|
|
if(new_page + 2 > max_page) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_page = new_page + 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Tabort(xid);
|
|
|
|
xid = Tbegin();
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 50; i+=2) {
|
2008-02-20 22:48:30 +00:00
|
|
|
new_page = TregionAlloc(xid, 1, 0);
|
2009-04-14 20:21:05 +00:00
|
|
|
if(new_page + 2 > max_page) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_page = new_page + 2;
|
|
|
|
}
|
|
|
|
}
|
2006-07-25 22:23:15 +00:00
|
|
|
|
|
|
|
fsckRegions(xid);
|
|
|
|
|
2006-07-20 21:54:32 +00:00
|
|
|
Tcommit(xid);
|
|
|
|
|
2008-10-03 02:42:25 +00:00
|
|
|
printf("\nMaximum space usage = %lld, best possible = %d\n", max_page, 104); // peak storage usage = 100 pages + 1 page + 3 boundary pages.
|
2006-07-20 21:54:32 +00:00
|
|
|
|
|
|
|
Tdeinit();
|
|
|
|
}
|
|
|
|
END_TEST
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
START_TEST(regions_randomizedTest) {
|
2006-07-20 21:54:32 +00:00
|
|
|
Tinit();
|
|
|
|
time_t seed = time(0);
|
2006-10-04 03:48:08 +00:00
|
|
|
printf("Seed = %ld: ", seed);
|
2006-07-20 21:54:32 +00:00
|
|
|
srandom(seed);
|
|
|
|
int xid = Tbegin();
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t pagesAlloced = 0;
|
|
|
|
pageid_t regionsAlloced = 0;
|
2006-07-20 21:54:32 +00:00
|
|
|
double max_blowup = 0;
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t max_region_count = 0;
|
|
|
|
pageid_t max_waste = 0;
|
|
|
|
pageid_t max_size = 0;
|
|
|
|
pageid_t max_ideal_size = 0;
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 10000; i++) {
|
|
|
|
if(!(i % 100)) {
|
2006-07-27 00:16:24 +00:00
|
|
|
Tcommit(xid);
|
|
|
|
xid = Tbegin();
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
if(!(i % 100)) {
|
2006-07-25 22:23:15 +00:00
|
|
|
fsckRegions(xid);
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
if(myrandom(2)) {
|
2006-07-20 21:54:32 +00:00
|
|
|
unsigned int size = myrandom(100);
|
2008-02-20 22:48:30 +00:00
|
|
|
TregionAlloc(xid, size, 0);
|
2006-07-20 21:54:32 +00:00
|
|
|
pagesAlloced += size;
|
|
|
|
regionsAlloced ++;
|
|
|
|
} else {
|
2009-04-14 20:21:05 +00:00
|
|
|
if(regionsAlloced) {
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t victim = myrandom(regionsAlloced);
|
|
|
|
pageid_t victimSize;
|
|
|
|
pageid_t victimPage;
|
2006-07-20 21:54:32 +00:00
|
|
|
TregionFindNthActive(xid, victim, &victimPage, &victimSize);
|
|
|
|
TregionDealloc(xid, victimPage);
|
|
|
|
pagesAlloced -= victimSize;
|
|
|
|
regionsAlloced --;
|
2009-04-14 20:21:05 +00:00
|
|
|
} else {
|
2006-07-20 21:54:32 +00:00
|
|
|
i--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
if(regionsAlloced) {
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t lastRegionStart;
|
|
|
|
pageid_t lastRegionSize;
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-20 21:54:32 +00:00
|
|
|
TregionFindNthActive(xid, regionsAlloced-1, &lastRegionStart, &lastRegionSize);
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t length = lastRegionStart + lastRegionSize+1;
|
|
|
|
pageid_t ideal = pagesAlloced + regionsAlloced + 1;
|
2006-07-20 21:54:32 +00:00
|
|
|
double blowup = (double)length/(double)ideal;
|
2008-10-03 02:42:25 +00:00
|
|
|
unsigned long long bytes_wasted = length - ideal;
|
2006-07-20 21:54:32 +00:00
|
|
|
// printf("Region count = %d, blowup = %d / %d = %5.2f\n", regionsAlloced, length, ideal, blowup);
|
2009-04-14 20:21:05 +00:00
|
|
|
if(max_blowup < blowup) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_blowup = blowup;
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
if(max_waste < bytes_wasted) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_waste = bytes_wasted;
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
if(max_size < length) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_size = length;
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
if(max_ideal_size < ideal) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_ideal_size = ideal;
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
if(max_region_count < regionsAlloced) {
|
2006-07-20 21:54:32 +00:00
|
|
|
max_region_count = regionsAlloced;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2006-07-25 22:23:15 +00:00
|
|
|
fsckRegions(xid);
|
2006-07-20 21:54:32 +00:00
|
|
|
Tcommit(xid);
|
2006-07-27 00:16:24 +00:00
|
|
|
|
2006-07-20 21:54:32 +00:00
|
|
|
Tdeinit();
|
2009-04-14 20:21:05 +00:00
|
|
|
if((double)max_size/(double)max_ideal_size > 5) {
|
2006-07-20 21:54:32 +00:00
|
|
|
// max_blowup isn't what we want here; it measures the peak
|
|
|
|
// percentage of the file that is unused. Instead, we want to
|
|
|
|
// measure the actual and ideal page file sizes for this run.
|
|
|
|
printf("WARNING: Excessive blowup ");
|
2009-04-14 20:21:05 +00:00
|
|
|
}
|
2008-10-03 02:42:25 +00:00
|
|
|
printf("Max # of regions = %lld, page file size = %5.2fM, ideal page file size = %5.2fM, (blowup = %5.2f)\n",
|
2009-04-14 20:21:05 +00:00
|
|
|
//peak bytes wasted = %5.2fM, blowup = %3.2f\n",
|
|
|
|
max_region_count,
|
|
|
|
((double)max_size * PAGE_SIZE)/(1024.0*1024.0),
|
|
|
|
((double)max_ideal_size * PAGE_SIZE)/(1024.0*1024.0),
|
2006-07-20 21:54:32 +00:00
|
|
|
(double)max_size/(double)max_ideal_size);
|
2009-04-14 20:21:05 +00:00
|
|
|
// ((double)max_waste * PAGE_SIZE)/(1024.0*1024.0),
|
2006-07-20 21:54:32 +00:00
|
|
|
// max_blowup);
|
2006-07-27 00:16:24 +00:00
|
|
|
|
|
|
|
} END_TEST
|
|
|
|
|
|
|
|
START_TEST(regions_lockSmokeTest) {
|
|
|
|
Tinit();
|
|
|
|
int xid = Tbegin();
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t pageid = TregionAlloc(xid, 100,0);
|
2006-07-27 00:16:24 +00:00
|
|
|
fsckRegions(xid);
|
|
|
|
Tcommit(xid);
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
|
|
|
|
xid = Tbegin();
|
|
|
|
int xid2 = Tbegin();
|
|
|
|
|
|
|
|
TregionDealloc(xid, pageid);
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
for(int i = 0; i < 50; i++) {
|
2008-02-20 22:48:30 +00:00
|
|
|
TregionAlloc(xid2, 1, 0);
|
2006-07-27 00:16:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fsckRegions(xid);
|
|
|
|
Tabort(xid);
|
|
|
|
fsckRegions(xid2);
|
|
|
|
Tcommit(xid2);
|
|
|
|
Tdeinit();
|
|
|
|
} END_TEST
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
START_TEST(regions_lockRandomizedTest) {
|
2006-07-27 00:16:24 +00:00
|
|
|
Tinit();
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
const int NUM_XACTS = 100;
|
|
|
|
const int NUM_OPS = 10000;
|
|
|
|
const int FUDGE = 10;
|
|
|
|
int xids[NUM_XACTS];
|
|
|
|
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t * xidRegions[NUM_XACTS + FUDGE];
|
2006-07-27 00:16:24 +00:00
|
|
|
int xidRegionCounts[NUM_XACTS + FUDGE];
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
int longXid = Tbegin();
|
|
|
|
|
|
|
|
time_t seed = time(0);
|
|
|
|
printf("\nSeed = %ld\n", seed);
|
|
|
|
srandom(seed);
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < NUM_XACTS; i++) {
|
2006-07-27 00:16:24 +00:00
|
|
|
xids[i] = Tbegin();
|
|
|
|
assert(xids[i] < NUM_XACTS + FUDGE);
|
2008-10-03 02:42:25 +00:00
|
|
|
xidRegions[xids[i]] = malloc(sizeof(pageid_t) * NUM_OPS);
|
2006-07-27 00:16:24 +00:00
|
|
|
xidRegionCounts[xids[i]] = 0;
|
|
|
|
}
|
|
|
|
int activeXacts = NUM_XACTS;
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < NUM_OPS; i++) {
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t j;
|
2009-04-14 20:21:05 +00:00
|
|
|
if(!(i % (NUM_OPS/NUM_XACTS))) {
|
2006-07-27 00:16:24 +00:00
|
|
|
// abort or commit one transaction randomly.
|
|
|
|
activeXacts --;
|
|
|
|
j = myrandom(activeXacts);
|
|
|
|
|
|
|
|
if(myrandom(2)) {
|
|
|
|
Tcommit(xids[j]);
|
2009-04-14 20:21:05 +00:00
|
|
|
} else {
|
2006-07-27 00:16:24 +00:00
|
|
|
Tabort(xids[j]);
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
if(activeXacts == 0) {
|
2006-07-27 00:16:24 +00:00
|
|
|
break;
|
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
for(; j < activeXacts; j++) {
|
2006-07-27 00:16:24 +00:00
|
|
|
xids[j] = xids[j+1];
|
|
|
|
}
|
|
|
|
fsckRegions(longXid);
|
|
|
|
}
|
|
|
|
|
|
|
|
j = myrandom(activeXacts);
|
|
|
|
|
|
|
|
if(myrandom(2)) {
|
|
|
|
// alloc
|
2008-02-20 22:48:30 +00:00
|
|
|
xidRegions[xids[j]][xidRegionCounts[xids[j]]] = TregionAlloc(xids[j], myrandom(100), 0);
|
2006-07-27 00:16:24 +00:00
|
|
|
xidRegionCounts[xids[j]]++;
|
|
|
|
} else {
|
|
|
|
// free
|
|
|
|
if(xidRegionCounts[xids[j]]) {
|
2009-04-14 20:21:05 +00:00
|
|
|
pageid_t k = myrandom(xidRegionCounts[xids[j]]);
|
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
TregionDealloc(xids[j], xidRegions[xids[j]][k]);
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-07-27 00:16:24 +00:00
|
|
|
xidRegionCounts[xids[j]]--;
|
2009-04-14 20:21:05 +00:00
|
|
|
|
|
|
|
for(; k < xidRegionCounts[xids[j]]; k++) {
|
2006-07-27 00:16:24 +00:00
|
|
|
xidRegions[xids[j]][k] = xidRegions[xids[j]][k+1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < activeXacts; i++) {
|
2006-07-27 00:16:24 +00:00
|
|
|
Tabort(i);
|
|
|
|
fsckRegions(longXid);
|
|
|
|
}
|
|
|
|
|
|
|
|
Tcommit(longXid);
|
|
|
|
|
|
|
|
Tdeinit();
|
2006-07-20 21:54:32 +00:00
|
|
|
} END_TEST
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
START_TEST(regions_recoveryTest) {
|
2006-10-05 22:08:42 +00:00
|
|
|
|
|
|
|
Tinit();
|
|
|
|
|
2008-10-03 02:42:25 +00:00
|
|
|
pageid_t pages[50];
|
2006-10-05 22:08:42 +00:00
|
|
|
int xid1 = Tbegin();
|
|
|
|
int xid2 = Tbegin();
|
2009-04-14 20:21:05 +00:00
|
|
|
for(int i = 0; i < 50; i+=2) {
|
2008-02-20 22:48:30 +00:00
|
|
|
pages[i] = TregionAlloc(xid1, myrandom(4)+1, 0);
|
|
|
|
pages[i+1] = TregionAlloc(xid2, myrandom(2)+1, 0);
|
2006-10-05 22:08:42 +00:00
|
|
|
}
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-10-05 22:08:42 +00:00
|
|
|
fsckRegions(xid1);
|
|
|
|
|
|
|
|
Tcommit(xid1);
|
|
|
|
|
|
|
|
Tdeinit();
|
|
|
|
|
2007-03-07 06:45:28 +00:00
|
|
|
if(TdurabilityLevel() == VOLATILE) { return; }
|
|
|
|
|
2006-10-05 22:08:42 +00:00
|
|
|
Tinit();
|
2009-04-14 20:21:05 +00:00
|
|
|
|
2006-10-05 22:08:42 +00:00
|
|
|
int xid = Tbegin();
|
|
|
|
fsckRegions(xid);
|
2009-04-14 20:21:05 +00:00
|
|
|
|
|
|
|
for(int i = 0; i < 50; i+=2) {
|
2006-10-05 22:08:42 +00:00
|
|
|
TregionDealloc(xid, pages[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
fsckRegions(xid);
|
|
|
|
Tabort(xid);
|
|
|
|
fsckRegions(Tbegin());
|
|
|
|
Tdeinit();
|
|
|
|
|
|
|
|
Tinit();
|
|
|
|
fsckRegions(Tbegin());
|
|
|
|
Tdeinit();
|
|
|
|
|
|
|
|
} END_TEST
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
/**
|
2006-07-20 21:54:32 +00:00
|
|
|
Add suite declarations here
|
|
|
|
*/
|
|
|
|
Suite * check_suite(void) {
|
|
|
|
Suite *s = suite_create("regions");
|
|
|
|
/* Begin a new test */
|
|
|
|
TCase *tc = tcase_create("regions_test");
|
|
|
|
tcase_set_timeout(tc, 0); // disable timeouts
|
|
|
|
|
2009-11-09 22:58:55 +00:00
|
|
|
stasis_log_softcommit = 1; // disable forcing log at commit
|
|
|
|
|
2009-04-14 20:21:05 +00:00
|
|
|
/* Sub tests are added, one per line, here */
|
2006-07-20 21:54:32 +00:00
|
|
|
tcase_add_test(tc, regions_smokeTest);
|
|
|
|
tcase_add_test(tc, regions_randomizedTest);
|
2006-07-27 00:16:24 +00:00
|
|
|
tcase_add_test(tc, regions_lockSmokeTest);
|
|
|
|
tcase_add_test(tc, regions_lockRandomizedTest);
|
2006-10-05 22:08:42 +00:00
|
|
|
tcase_add_test(tc, regions_recoveryTest);
|
2006-07-20 21:54:32 +00:00
|
|
|
/* --------------------------------------------- */
|
|
|
|
tcase_add_checked_fixture(tc, setup, teardown);
|
|
|
|
suite_add_tcase(s, tc);
|
|
|
|
|
|
|
|
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "../check_setup.h"
|