|
From: João H. F. <jo...@gm...> - 2009-11-24 00:03:48
|
Hi
I am using the accessor funcions to fetch the values. I think two
member of struct FIELDINFO need to be more big.
struct FIELDINFO {
char name[32];
unsigned short type;
unsigned int attrib;
union {
long long int int_val;
unsigned long long int uint_val;
double double_val;
char string_val[48];
} expect_val;
long long expect_as_longlong;
char expect_as_string[48];
};
Thanks.
>
>
> 2009/11/12 Markus Hoenicka <mar...@mh...>:
>> Markus Hoenicka writes:
>> > I'll have to rewrite the accessor functions, and add new ones to make
>> > the expected values available to calling functions. Then we'd have to
>>
>> I've finished adding the accessor functions. Now we should have all
>> the infrastructure available to rewrite the tests. These should use
>> values taken from the structures via the accessor functions instead of
>> hardcoded values.
>>
>> Once that is done, I'd like to rearrange the code in test_dbi.c to
>> separate driver-specific code from non-specific code. This way we
>> could draw a line claiming "no driver-specific changes required below
>> this line" to make adding new drivers more pleasant.
>>
>> regards,
>> Markus
>>
>> --
>> Markus Hoenicka
>> http://www.mhoenicka.de
>> AQ score 38
>>
>
>
>
> --
> -----------------------------------------------------------
> João Henrique Freitas - joaohf_at_gmail.com
> Campinas-SP-Brasil
> BSD051283
> LPI 1
> http://www.joaohfreitas.eti.br
>
--
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br
|