Add maxmind demo to redbean-demo.com

This commit is contained in:
Justine Tunney 2022-03-18 15:31:54 -07:00
parent c4d8f40422
commit c541225af0
9 changed files with 355 additions and 30 deletions

View file

@ -18,6 +18,7 @@
*/
#include "libc/bits/popcnt.h"
#include "libc/testlib/ezbench.h"
#include "libc/testlib/hyperion.h"
#include "libc/testlib/testlib.h"
TEST(popcnt, test) {
@ -31,4 +32,5 @@ BENCH(popcnt, bench) {
EXPROPRIATE(popcnt(VEIL("r", 0x5555555555555555))));
EZBENCH2("(popcnt)", donothing,
EXPROPRIATE((popcnt)(VEIL("r", 0x5555555555555555))));
EZBENCH_N("_countbits", kHyperionSize, _countbits(kHyperion, kHyperionSize));
}

View file

@ -43,7 +43,6 @@ TEST(strerror, einval) {
TEST(strerror, symbolizingTheseNumbersAsErrorsIsHeresyInUnixStyle) {
EXPECT_STARTSWITH("EUNKNOWN", strerror(0));
EXPECT_STARTSWITH("EUNKNOWN", strerror(-1));
}
TEST(strerror, enotconn_orLinkerIsntUsingLocaleC_orCodeIsOutOfSync) {

View file

@ -228,11 +228,7 @@ TEST(ksnprintf, fuzzTheUnbreakable) {
TEST(kprintf, testFailure_wontClobberErrnoAndBypassesSystemCallSupport) {
int n;
#if 0
ASSERT_EQ(0, errno); /* xxx: todo(jart) */
#else
errno = 0;
#endif
ASSERT_EQ(0, errno);
EXPECT_SYS(0, 3, dup(2));
EXPECT_SYS(0, 0, close(2));
n = g_syscount;