test: drop printfs from protocol-eventconvert.c
The test outputs are noisy enough, no need having these here too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8080d785b2
commit
0c661dc478
|
@ -193,7 +193,6 @@ static void test_convert_XIRawEvent(void)
|
||||||
|
|
||||||
memset(&in, 0, sizeof(in));
|
memset(&in, 0, sizeof(in));
|
||||||
|
|
||||||
printf("Testing all event types\n");
|
|
||||||
in.header = ET_Internal;
|
in.header = ET_Internal;
|
||||||
in.type = ET_RawMotion;
|
in.type = ET_RawMotion;
|
||||||
test_XIRawEvent(&in);
|
test_XIRawEvent(&in);
|
||||||
|
@ -214,7 +213,6 @@ static void test_convert_XIRawEvent(void)
|
||||||
in.type = ET_RawButtonRelease;
|
in.type = ET_RawButtonRelease;
|
||||||
test_XIRawEvent(&in);
|
test_XIRawEvent(&in);
|
||||||
|
|
||||||
printf("Testing details and other fields\n");
|
|
||||||
in.detail.button = 1L;
|
in.detail.button = 1L;
|
||||||
test_XIRawEvent(&in);
|
test_XIRawEvent(&in);
|
||||||
in.detail.button = 1L << 8;
|
in.detail.button = 1L << 8;
|
||||||
|
@ -246,7 +244,6 @@ static void test_convert_XIRawEvent(void)
|
||||||
in.deviceid = ~0 & 0xFF;
|
in.deviceid = ~0 & 0xFF;
|
||||||
test_XIRawEvent(&in);
|
test_XIRawEvent(&in);
|
||||||
|
|
||||||
printf("Testing valuator masks\n");
|
|
||||||
for (i = 0; i < MAX_VALUATORS; i++)
|
for (i = 0; i < MAX_VALUATORS; i++)
|
||||||
{
|
{
|
||||||
XISetMask(in.valuators.mask, i);
|
XISetMask(in.valuators.mask, i);
|
||||||
|
@ -432,7 +429,6 @@ static void test_convert_XIDeviceEvent(void)
|
||||||
|
|
||||||
memset(&in, 0, sizeof(in));
|
memset(&in, 0, sizeof(in));
|
||||||
|
|
||||||
printf("Testing simple field values\n");
|
|
||||||
in.header = ET_Internal;
|
in.header = ET_Internal;
|
||||||
in.type = ET_Motion;
|
in.type = ET_Motion;
|
||||||
in.length = sizeof(DeviceEvent);
|
in.length = sizeof(DeviceEvent);
|
||||||
|
@ -456,7 +452,6 @@ static void test_convert_XIDeviceEvent(void)
|
||||||
|
|
||||||
test_XIDeviceEvent(&in);
|
test_XIDeviceEvent(&in);
|
||||||
|
|
||||||
printf("Testing field ranges\n");
|
|
||||||
/* 32 bit */
|
/* 32 bit */
|
||||||
in.detail.button = 1L;
|
in.detail.button = 1L;
|
||||||
test_XIDeviceEvent(&in);
|
test_XIDeviceEvent(&in);
|
||||||
|
@ -604,7 +599,6 @@ static void test_convert_XIDeviceEvent(void)
|
||||||
in.mods.effective = ~0 & 0xFF;
|
in.mods.effective = ~0 & 0xFF;
|
||||||
test_XIDeviceEvent(&in);
|
test_XIDeviceEvent(&in);
|
||||||
|
|
||||||
printf("Testing button masks\n");
|
|
||||||
for (i = 0; i < sizeof(in.buttons) * 8; i++)
|
for (i = 0; i < sizeof(in.buttons) * 8; i++)
|
||||||
{
|
{
|
||||||
XISetMask(in.buttons, i);
|
XISetMask(in.buttons, i);
|
||||||
|
@ -618,7 +612,6 @@ static void test_convert_XIDeviceEvent(void)
|
||||||
test_XIDeviceEvent(&in);
|
test_XIDeviceEvent(&in);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Testing valuator masks\n");
|
|
||||||
for (i = 0; i < MAX_VALUATORS; i++)
|
for (i = 0; i < MAX_VALUATORS; i++)
|
||||||
{
|
{
|
||||||
XISetMask(in.valuators.mask, i);
|
XISetMask(in.valuators.mask, i);
|
||||||
|
@ -799,7 +792,6 @@ static void test_convert_XIDeviceChangedEvent(void)
|
||||||
DeviceChangedEvent in;
|
DeviceChangedEvent in;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
printf("Testing simple field values\n");
|
|
||||||
memset(&in, 0, sizeof(in));
|
memset(&in, 0, sizeof(in));
|
||||||
in.header = ET_Internal;
|
in.header = ET_Internal;
|
||||||
in.type = ET_DeviceChanged;
|
in.type = ET_DeviceChanged;
|
||||||
|
|
Loading…
Reference in New Issue