mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Add maxmind demo to redbean-demo.com
This commit is contained in:
parent
c4d8f40422
commit
c541225af0
9 changed files with 355 additions and 30 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue