summaryrefslogtreecommitdiff
path: root/tests/test_opus_common.h
diff options
context:
space:
mode:
authorMarcus Asteborg <maastebo@microsoft.com>2022-06-30 18:57:08 -0700
committerMark Harris <mark.hsj@gmail.com>2022-07-05 19:07:43 -0700
commit683592180f64f5723274a9105be2f3af6208a901 (patch)
tree5c61d85ca034181dbd6fee7c7a91b406c7df67e6 /tests/test_opus_common.h
parent271d48814912a23c7f9443bc81055cbf58ff355b (diff)
downloadopus-683592180f64f5723274a9105be2f3af6208a901.tar.gz
Replace assert with test_failed function in test
This will fix -Wunused-but-set-variable on gcc 9.3 release build. Also remove unused assert.h. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
Diffstat (limited to 'tests/test_opus_common.h')
-rw-r--r--tests/test_opus_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_common.h b/tests/test_opus_common.h
index d96c7d84..5fb924f4 100644
--- a/tests/test_opus_common.h
+++ b/tests/test_opus_common.h
@@ -81,5 +81,5 @@ static OPUS_INLINE void _test_failed(const char *file, int line)
abort();
}
#define test_failed() _test_failed(__FILE__, __LINE__);
-
+#define opus_test_assert(cond) {if (!(cond)) {test_failed();}}
void regression_test(void);