18 lines
434 B
C++
18 lines
434 B
C++
// 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 },
|
|
};
|