diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-17 15:11:28 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-17 15:11:33 +0100 |
commit | 6570686dc178b801b287e0ab155aaf691bbcb1eb (patch) | |
tree | 72ac2dcc50d58314b607ce523792ae6e7ec2a102 /test.c | |
parent | Add optimisations (no yet used) (diff) | |
download | libar2-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)); |