Split functionality into test code in pure C and helper code in XC

This commit is contained in:
mbanth
2021-05-24 15:47:31 +01:00
parent fbef825a3b
commit eb6d3b0869
3 changed files with 20 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
// Copyright 2021 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <stddef.h>
#include "xua_unit_tests.h"
#include "xua_hid_report_descriptor.h"
void test_uninitialised_hidGetReportDescriptor()
{
unsigned char* reportDescPtr = hidGetReportDescriptor();
TEST_ASSERT_NULL( reportDescPtr );
}