version 1.2, 2005/02/04 08:51:51
|
version 1.3, 2005/02/04 09:17:22
|
|
|
FDIDestroy | FDIDestroy |
*/ | */ |
| |
|
/* Currently dummy function pointers */ |
| |
|
FNALLOC(dummy_alloc) { |
|
printf("FNALLOC just called with %d\n",cb); |
|
return 0; |
|
} |
|
|
|
FNFREE(dummy_free) { |
|
printf("FNFREE just called with %d\n",pv); |
|
return; |
|
} |
| |
|
FNOPEN(dummy_open) { |
|
printf("FNOPEN just called with %d, %d, %d\n",pszFile, oflag, pmode); |
|
return 0; |
|
} |
|
|
|
FNREAD(dummy_read) { |
|
/* printf("FNREAD just called with %d, %d, %d\n",hf, pv, cb); |
|
return void; |
|
*/ return 0; |
|
} |
|
|
|
FNWRITE(dummy_write) { |
|
/* printf("FNWRITE just called with %d, %d, %d\n",hf, pv, cb); |
|
return void; |
|
*/ return 0; |
|
} |
|
|
|
|
|
FNCLOSE(dummy_close) { |
|
/* printf("FNCLOSE just called with %d\n",hf); |
|
return void; |
|
*/ return 0; |
|
} |
|
|
|
FNSEEK(dummy_seek) { |
|
/* printf("FNSEEK just called with %d, %d, %d\n",hf, dist, seektype); |
|
return void; |
|
*/ return 0; |
|
} |
|
|
|
static void TestDestroy(void) { |
|
/* Only two things to check in FDIDestroy |
|
1=> Does it return T if its passed an hfdi |
|
2=> Does it return F if its passed a non hfdi |
|
*/ |
|
|
|
ok( 0 == FDIDestroy(0), "Return true incorrectly in TestDestroy()!\n"); |
|
/* |
|
TODO : check if its passed an hfdi |
|
*/ |
|
} |
| |
| |
START_TEST(paths) | START_TEST(paths) |
|
|
TestCreate(); | TestCreate(); |
TestInfo(); | TestInfo(); |
TestCopy(); | TestCopy(); |
TestDestroy(); |
|
*/ | */ |
} |
TestDestroy(); |
|
|
|
|
| |
|
} |