From ec737355d280226b04042cbce055de842df87446 Mon Sep 17 00:00:00 2001 From: Rishabh Agarwal Date: Fri, 21 Aug 2026 10:10:26 -0400 Subject: [PATCH] tests: add check for nullptr for wctx in test-vad-full (#3998) * added check for nullptr for wctx Signed-off-by: GodRishUniverse * Apply the update for failed message in tests/test-vad-full.cpp Co-authored-by: Daniel Bevenius --------- Signed-off-by: GodRishUniverse Co-authored-by: Daniel Bevenius --- tests/test-vad-full.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-vad-full.cpp b/tests/test-vad-full.cpp index cfb3f2daa..765ef3654 100644 --- a/tests/test-vad-full.cpp +++ b/tests/test-vad-full.cpp @@ -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();