Skip to content

Commit eea6c05

Browse files
committed
Add test for invalid pipeline JSON and removed DimTypeList disposal logging from test
1 parent 7e067c0 commit eea6c05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/pdal/capi/PipelineTest.c.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ TEST testPDALCreateAndDisposePipeline(void)
5151
pipeline = PDALCreatePipeline("");
5252
ASSERT_EQ(NULL, pipeline);
5353

54+
pipeline = PDALCreatePipeline("This is not a valid pipeline, it's not even JSON");
55+
ASSERT_EQ(NULL, pipeline);
56+
5457
pipeline = PDALCreatePipeline(gPipelineJson);
5558
ASSERT(pipeline);
5659

tests/pdal/capi/PointLayoutTest.c.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ TEST testPDALGetPointLayoutDimTypes(void)
7777
size_t size = PDALGetDimTypeListSize(types);
7878
ASSERTm("PDALGetDimTypeListSize should return more than zero for a valid list", size > 0);
7979

80-
printf("\nDisposing...\n");
8180
PDALDisposeDimTypeList(types);
82-
printf("\nDisposed!\n");
8381
PASS();
8482
}
8583

0 commit comments

Comments
 (0)