From 1fe98572204183beeda5e577fc13a1190e6d5f45 Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Tue, 21 Nov 2023 10:25:31 +0100 Subject: [PATCH] Use TEST_ERR correctly, cut beep.wav to exactly 67 ms. --- test/aupos.c | 9 +++------ test/data/beep.wav | Bin 1126 -> 6158 bytes 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test/aupos.c b/test/aupos.c index 076b4b770..4887fda43 100644 --- a/test/aupos.c +++ b/test/aupos.c @@ -24,18 +24,15 @@ int test_auposition(void) re_snprintf(path, sizeof(path), "%s/beep.wav", test_datapath()); int err = aufile_open(&af, &prm, path, AUFILE_READ); - if (err) - TEST_ERR(err); + TEST_ERR(err); err = aufile_set_position(af, &prm, 67); - if (err) - TEST_ERR(err); + TEST_ERR(err); /* That file is 67 ms long, so we shouldn't read anything */ size_t size = sizeof(buffer); err = aufile_read(af, buffer, &size); - if (err) - TEST_ERR(err); + TEST_ERR(err); TEST_EQUALS(0, size); diff --git a/test/data/beep.wav b/test/data/beep.wav index ad633a3991c1ebdb2f6e2e4b6f5bbf6b67d9b961..2ff0b0d65c42e8c5c9d75267f91527831a442b89 100644 GIT binary patch literal 6158 zcmeHL3s4mI8D9`Zk%$jO4B{<^0tf8l4!FkxhsZ;y9y&_Jwx(upcMnduhj$AHnxr=M z5o&A4v?G&gV`?U8GA6C2Hi^;H+8DJN6xib_&mf9GP(UF>rEYic$%$lWw9`(9Wp?h* zx8L{szVG*a|8M`Z8?!SrX9WX5Uh3uyjgAKA0|4N~{jCxJz-}b~cmwkR5~p$02LP_K z0-%kJ0P0x;_$BbBcgZ~&&@%6L{nsAs6IAvAy=z4=|4g(hg!4lVT-rNpOcqf0YDf8M z;Wyc5F*GOQtq=G6?91L?70D=a!o3dvX%76ltp51!k-^P#o9fTXRi6fC{~&4L!K{)}5DAiu?L6dyD_FSnn|q*&4j7IqY<}UZ!>H)~aqEwkUtAV$ zT|U-^jPypgQlcL`Lsx(8ZxH>ywX%0JQa*O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