mirror of
https://github.com/deadw00d/AROS.git
synced 2025-10-26 21:18:42 +00:00
Click simulation needs explicity enabling now
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
|
||||
#include <libraries/mui.h>
|
||||
|
||||
#define ENABLE_CLICK
|
||||
#include "../test-util.h"
|
||||
|
||||
#if defined(__AROS__)
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
|
||||
#define CUNIT_ABSOLUTE_PATH "SYS:Development/Debug/Tests/cunit"
|
||||
|
||||
#if defined(ENABLE_CLICK)
|
||||
static inline struct IntuiMessage * _AllocIntuiMessage(struct Window *w)
|
||||
{
|
||||
struct IntuiMessage *imsg = AllocMem(sizeof(struct IntuiMessage), MEMF_PUBLIC | MEMF_CLEAR);
|
||||
@ -40,6 +41,7 @@ static inline void Click(struct Window *w, LONG x, LONG y)
|
||||
_SendIntuiMessage(w, imsg);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__AROS__)
|
||||
|
||||
@ -86,6 +88,14 @@ static ULONG SAVEDS func(REG(a0, struct IClass *cl), \
|
||||
VPrintf("Assertion failed %s:%ld\n", _tags); \
|
||||
}
|
||||
|
||||
#define CU_FAIL(msg) \
|
||||
{ \
|
||||
CONST_STRPTR f = __FILE__; \
|
||||
CONST_STRPTR m = #msg; \
|
||||
ULONG _tags[] = { (ULONG)m, (ULONG)f, __LINE__}; \
|
||||
VPrintf("Test failed %s %s:%ld\n", _tags); \
|
||||
}
|
||||
|
||||
#define CU_CI_DEFINE_SUITE(...) \
|
||||
__cu_suite_setup(); \
|
||||
|
||||
|
||||
Reference in New Issue
Block a user