- Tester body written

This commit is contained in:
Jan Hutter
2005-11-03 08:56:04 +00:00
parent abe3ca0eb5
commit e0ab426188
2 changed files with 24 additions and 6 deletions
+17 -3
View File
@@ -20,13 +20,27 @@
* for more details.
*/
#include <stdio.h>
#include "types.h"
#include "tester.h"
/* output for test messages */
extern FILE * stderr;
int main()
{
FILE * test_output = stderr;
return 0;
tester_t *tester = tester_create(test_output);
tester->test_all(tester);
if (tester->destroy(tester) == SUCCESS)
{
return -1;
}
return 0;
}
+7 -3
View File
@@ -35,9 +35,13 @@ typedef struct {
} private_tester_t;
static status_t test_all(tester_t *this)
static status_t test_all(tester_t *tester)
{
private_tester_t *this =(private_tester_t*) tester;
fprintf(this->output,"Start testing\n");
fprintf(this->output,"End testing\n");
return SUCCESS;
}
@@ -57,5 +61,5 @@ tester_t *tester_create(FILE *output)
this->output = output;
return SUCCESS;
return &(this->tester);
}