BIG OOPS
This commit is contained in:
parent
c17f854d04
commit
0264ea9905
|
@ -0,0 +1,11 @@
|
|||
// 10 june 2019
|
||||
#include "test_unix.h"
|
||||
|
||||
static const uiControlOSVtable vtable = {
|
||||
.Size = sizeof (uiControlOSVtable),
|
||||
};
|
||||
|
||||
const uiControlOSVtable *testOSVtable(void)
|
||||
{
|
||||
return &vtable;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
// 16 june 2019
|
||||
#include "test_unix.h"
|
||||
|
||||
const struct checkErrorCase controlOSVtableCases[] = {
|
||||
{
|
||||
"uiRegisterControlType() with OS vtable with wrong size",
|
||||
[](void) {
|
||||
uiControlOSVtable vtable;
|
||||
|
||||
memset(&vtable, 0, sizeof (uiControlOSVtable));
|
||||
vtable.Size = 1;
|
||||
uiRegisterControlType("name", testVtable(), &vtable, 0);
|
||||
},
|
||||
"uiRegisterControlType(): wrong size 1 for uiControlOSVtable",
|
||||
},
|
||||
{ NULL, NULL, NULL },
|
||||
};
|
Loading…
Reference in New Issue