summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Asteborg <maastebo@microsoft.com>2022-07-01 06:41:27 -0700
committerMark Harris <mark.hsj@gmail.com>2022-07-05 19:20:24 -0700
commit4782baf0afd506da58e5275a254d34a248a63bf9 (patch)
treec1df63e0db8fa748f14a32963f2b2d17179799e4
parent683592180f64f5723274a9105be2f3af6208a901 (diff)
downloadopus-4782baf0afd506da58e5275a254d34a248a63bf9.tar.gz
Remove unused variable in tests
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
-rw-r--r--tests/test_opus_padding.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_opus_padding.c b/tests/test_opus_padding.c
index c22e8f0d..c9ef7375 100644
--- a/tests/test_opus_padding.c
+++ b/tests/test_opus_padding.c
@@ -39,7 +39,7 @@
#define CHANNELS 2
#define FRAMESIZE 5760
-int test_overflow(void)
+void test_overflow(void)
{
OpusDecoder *decoder;
int result;
@@ -51,7 +51,7 @@ int test_overflow(void)
fprintf(stderr, " Checking for padding overflow... ");
if (!in || !out) {
fprintf(stderr, "FAIL (out of memory)\n");
- return -1;
+ test_failed();
}
in[0] = 0xff;
in[1] = 0x41;
@@ -71,21 +71,18 @@ int test_overflow(void)
}
fprintf(stderr, "OK.\n");
-
- return 1;
}
int main(void)
{
const char *oversion;
- int tests = 0;;
iseed = 0;
oversion = opus_get_version_string();
if (!oversion) test_failed();
fprintf(stderr, "Testing %s padding.\n", oversion);
- tests += test_overflow();
+ test_overflow();
fprintf(stderr, "All padding tests passed.\n");