more tests (properties)

This commit is contained in:
dzavalishin 2015-07-02 13:55:12 +03:00
parent 8b078d1f34
commit ef11ca52bb
2 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,7 @@ CFLAGS += -I../../openpod -I../..
all: $(LIB)
install::
# TODO
# Empty
clean::
-rm *.o

View File

@ -201,9 +201,17 @@ TEST_FUNCT(use_driver_properties)
{
//errno_t rc;
char buf[128];
// TODO test pod_gen_listproperties
// TODO test combined valp()/get/set/activate
// List
CU_ASSERT_EQUAL(0, pod_drv_listproperties( &test_driver, 3, buf, sizeof(buf) ) );
CU_ASSERT_STRING_EQUAL( buf, "ro_func_conv" );
CU_ASSERT_EQUAL(ENOENT, pod_drv_listproperties( &test_driver, 333, buf, sizeof(buf) ) );
CU_ASSERT_EQUAL(E2BIG, pod_drv_listproperties( &test_driver, 0, buf, 2) );
// Int
CU_ASSERT_EQUAL(0, pod_drv_getproperty( &test_driver, "blit_queue_timeout", buf, sizeof(buf) ) );