Skip to content

Commit a02e3ca

Browse files
committed
Add logging messages to testPDALGetPointLayoutDimTypes
This change is needed to investigate unit test failures on this test for x64-linux release and debug and x64-windows debug. The latter failure could not be reproduced on a developer build.
1 parent 26daf20 commit a02e3ca

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/pdal/capi/PointLayoutTest.c.in

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,17 @@ TEST testPDALGetPointLayoutDimTypes(void)
6969
{
7070
ASSERT(gLayout);
7171
PDALDimTypeListPtr types = PDALGetPointLayoutDimTypes(NULL);
72-
ASSERT_EQ(NULL, types);
72+
ASSERT_EQm("PDALGetPointLayoutDimTypes(NULL) should return NULL", NULL, types);
7373

7474
types = PDALGetPointLayoutDimTypes(gLayout);
75-
ASSERT(types);
75+
ASSERTm("PDALGetPointLayoutDimTypes should return non-NULL for a valid layout", types);
7676

7777
size_t size = PDALGetDimTypeListSize(types);
78-
ASSERT(size > 0);
78+
ASSERTm("PDALGetDimTypeListSize should return more than zero for a valid list", size > 0);
7979

80+
printf("\nDisposing...\n");
8081
PDALDisposeDimTypeList(types);
81-
size = PDALGetDimTypeListSize(types);
82-
ASSERT_EQ(0, size);
83-
82+
printf("\nDisposed!\n");
8483
PASS();
8584
}
8685

0 commit comments

Comments
 (0)