tests: add check for nullptr for wctx in test-vad-full (#3998)

* added check for nullptr for wctx

Signed-off-by: GodRishUniverse <risagarw@amd.com>

* Apply the update for failed message in tests/test-vad-full.cpp

Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>

---------

Signed-off-by: GodRishUniverse <risagarw@amd.com>
Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
Rishabh Agarwal 2026-08-21 10:10:26 -04:00 committed by GitHub
parent a4ad15f302
commit ec737355d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ int main() {
whisper_model_path.c_str(),
cparams);
if (!wctx) {
fprintf(stderr, "failed to load model '%s'\n", whisper_model_path.c_str());
return 1;
}
struct whisper_full_params wparams = whisper_full_default_params(WHISPER_SAMPLING_BEAM_SEARCH);
wparams.vad = true;
wparams.vad_model_path = vad_model_path.c_str();