version 1.3, 2005/02/04 09:17:22
|
version 1.4, 2005/02/04 09:30:15
|
|
|
*/ return 0; | */ return 0; |
} | } |
| |
|
HFDI my_hfdi; |
|
/* yes its global and ugly */ |
|
|
static void TestDestroy(void) { | static void TestDestroy(void) { |
|
printf("Starting TestDestroy()\n"); |
/* Only two things to check in FDIDestroy | /* Only two things to check in FDIDestroy |
1=> Does it return T if its passed an hfdi | 1=> Does it return T if its passed an hfdi |
2=> Does it return F if its passed a non hfdi | 2=> Does it return F if its passed a non hfdi |
*/ |
EDIT : Causes GPL if FDIDestroy is called on an invalid pointer. |
|
|
ok( 0 == FDIDestroy(0), "Return true incorrectly in TestDestroy()!\n"); | ok( 0 == FDIDestroy(0), "Return true incorrectly in TestDestroy()!\n"); |
/* |
|
TODO : check if its passed an hfdi |
|
*/ | */ |
|
ok(FDIDestroy(my_hfdi), "Failed on destroying test hfdi!\n"); |
|
|
} | } |
| |
|
static void TestCreate(void) { |
|
|
|
ERF error_structure; |
|
|
|
printf("Starting TestCreate()\n"); |
|
|
|
my_hfdi = FDICreate( |
|
dummy_alloc, |
|
dummy_free, |
|
dummy_open, |
|
dummy_read, |
|
dummy_write, |
|
dummy_close, |
|
dummy_seek, |
|
cpu80386, |
|
&error_structure |
|
); |
|
|
|
ok(my_hfdi != NULL,"FDICreate failed!\n"); |
|
|
|
printf("Ending TestCreate()\n"); |
|
} |
| |
START_TEST(paths) | START_TEST(paths) |
{ | { |
/* |
|
TestCreate(); | TestCreate(); |
|
/* |
TestInfo(); | TestInfo(); |
TestCopy(); | TestCopy(); |
*/ | */ |