tests/cpp_test.cc: improve error reporting in check_title

The test somehow briefly failed for me. This will help debug if it happens again.
This commit is contained in:
Mads Kiilerich 2022-10-26 14:06:51 +02:00 committed by evpobr
parent e2c38cd5c4
commit 0a52a40111

View File

@ -106,7 +106,7 @@ check_title (const SndfileHandle & file, const char * filename)
title = file.getString (SF_STR_TITLE) ; title = file.getString (SF_STR_TITLE) ;
if (title == NULL) if (title == NULL)
{ printf ("\n\n%s %d : Error : No title.\n\n", __func__, __LINE__) ; { printf ("\n\n%s %d : Error : No title for %s.\n\n", __func__, __LINE__, filename) ;
exit (1) ; exit (1) ;
} ; } ;