stream: add pipeline test for destroy of returned stream
Adds a test to ensure that destroying the returned stream of pipeline will cause a premature close error.
Was unsure whether this was the case and didn't find a test for it so I thought I might as well add one.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines