Skip to content

Commit

Permalink
revert adding useless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Dec 1, 2021
1 parent 9a99cf1 commit 8758261
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions t/fusion.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static const char *tostr(const void *_p, size_t len)
return buf;
}

static void test_loadn_11(void)
static void test_loadn(void)
{
uint8_t buf[8192] = {0};

Expand All @@ -66,23 +66,6 @@ static void test_loadn_11(void)
ok(!!"success");
}

static void test_loadn_16(void)
{
uint8_t buf[8192] = {0};

for (size_t off = 0; off < 8192 - 15; ++off) {
uint8_t *src = buf + off;
memcpy(src, "hello world12345", 16);
__m128i v = loadn(src, 16);
if (memcmp(&v, "hello world12345", 16) != 0) {
ok(!"fail");
return;
}
memset(src, 0, 16);
}
ok(!!"success");
}

static const uint8_t zero[16384] = {0};

static void test_ecb(void)
Expand Down Expand Up @@ -343,8 +326,7 @@ int main(int argc, char **argv)
return done_testing();
}

subtest("loadn-11", test_loadn_11);
subtest("loadn-16", test_loadn_16);
subtest("loadn", test_loadn);
subtest("ecb", test_ecb);
subtest("gcm-basic", gcm_basic);
subtest("gcm-capacity", gcm_capacity);
Expand Down

0 comments on commit 8758261

Please sign in to comment.