Open speth opened 10 months ago
@speth - as there have been several PR's merged since creating this issue, this may already be fixed?
This issue does not affect the sample programs in the C++ tutorial (https://cantera.org/dev/userguide/cxx-tutorial.html) which are now included in the test suite as of #1657, because the regression tests for these make comparisons of the combined stdout
and stderr
of the samples.
However, nothing has changed for the other C++ sample programs.
Problem description
Currently, the C++ samples can (and do) contain use of deprecated methods. While these samples are compiled and run as part of
scons test
, we do not force deprecation warnings to be errors in these samples, and the output written tostdout
andstederr
is not included in the test comparisons for most of these tests, which means the warnings printed to the screen go unnoticedSteps to reproduce
scons test
./build/samples/cxx/bvp/blasius
(may require fiddling withLD_LIBRARY_PATH
)DeprecationWarning
in the outputBehavior
Step 1 passes with no errors. Step 2 produces output starting with:
System information
Additional context
I already have a fix prepared for the specific warnings here that will be included in an upcoming PR, but thought it was helpful to track this gap in our testing separately.