aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-17 15:11:28 +0100
committerMattias Andrée <maandree@kth.se>2022-02-17 15:11:33 +0100
commit6570686dc178b801b287e0ab155aaf691bbcb1eb (patch)
tree72ac2dcc50d58314b607ce523792ae6e7ec2a102 /test.c
parentAdd optimisations (no yet used) (diff)
downloadlibar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.gz
libar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.bz2
libar2-6570686dc178b801b287e0ab155aaf691bbcb1eb.tar.xz
m + use optimisations '(adds auto-executed function: libar2_init)'
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test.c b/test.c
index af9538b..3aec24c 100644
--- a/test.c
+++ b/test.c
@@ -879,9 +879,6 @@ memis(char *mem, int ch, size_t n)
/* Typo in version 1.0 */
extern void libar2_earse(volatile void *mem, size_t size);
-/* libar2_erase has been replaced by this test, so we test this instead */
-extern void libar2_internal_erase__(volatile void *mem, size_t size);
-
static void
check_libar2_erase(void)
{
@@ -892,6 +889,7 @@ check_libar2_erase(void)
assert(memis(&buf[512], 1, 512));
assert(memis(&buf[0], 0, 512));
+ /* libar2_erase has been replaced by this test, so we test this instead */
memset(buf, 1, sizeof(buf));
libar2_internal_erase__(&buf[0], 512);
assert(memis(&buf[512], 1, 512));