Fix abstract_typedef C test code

Don't refer to the typedef name (especially with a typo in it...), it is not
supposed to be exported.

Also fix the write() method call: use the right class for it and pass it the
correct arguments.
This commit is contained in:
Vadim Zeitlin 2016-04-20 23:06:32 +02:00
commit b062a63cd1
2 changed files with 2 additions and 6 deletions

View file

@ -45,7 +45,6 @@ FAILING_C_TESTS := \
unions \
FAILING_CPP_TESTS := \
abstract_typedef \
abstract_typedef2 \
anonymous_bitfield \
apply_signed_char \

View file

@ -4,15 +4,12 @@
int main(int argc, const char *argv[]) {
Engine *e = new_Engine();
PerseEngine *pe = new_PersEngine();
A *a = new_A();
assert(A_write(e) == true);
assert(A_write(pe) == true);
assert(AbstractBaseClass_write(a, e) == true);
delete_A(a);
delete_PerseEngine(pe);
delete_Engine(e);
return 0;
}
}