diff --git a/post/tests.c b/post/tests.c
index 698f85c98d43b7cdc7f145fac7df7120a1047f3f..ed4ef2b509bf15f49f0bb7059b6aaa0dbfee735c 100644
--- a/post/tests.c
+++ b/post/tests.c
@@ -225,7 +225,7 @@ struct post_test post_list[] =
 	CFG_POST_DSP
     },
 #endif
-#if CONFIG_POST & CFG_POST_DSP
+#if CONFIG_POST & CFG_POST_CODEC
     {
 	"CODEC test",
 	"codec",