Commit Graph

1681 Commits

Author SHA1 Message Date
ef17f9c7d1 hash: class decleration style 2016-06-17 15:57:09 +10:00
51487cd34e hash: put checksum functions into util:#️⃣: 2016-06-17 15:56:14 +10:00
aeba9033e0 hash: prefer iterator style over base/length 2016-06-17 15:46:11 +10:00
ba4b22c208 hash/md2: style 2016-06-17 15:37:54 +10:00
38cb91fcb5 tools/hash: style 2016-06-17 14:59:11 +10:00
e62af110b6 tools/hash: protect against invalid arg count 2016-06-17 14:58:12 +10:00
850fa0470f debug_posix: downgrade force_console error to WARN
This is unavoidably triggered running under certain debuggers, so it's
more useful to downgrade to WARN so as to not interfere with a useful
DEBUG_BREAK or LOG_LEVEL setting.
2016-05-18 10:27:36 +10:00
ea0d107859 alloc/linear: warn on null src pointers 2016-05-18 10:26:55 +10:00
7bab0dd481 version: undef interfering freebsd functions
this is a massive hack, but i'm sick of people pulling this shit.
2016-05-13 15:23:38 +10:00
02c0d6ce69 platform: add freebsd platform defines 2016-05-13 15:23:22 +10:00
c3e2e1ae44 exe: add trivial test case 2016-05-13 15:23:05 +10:00
5c2952561b exe: add freebsd image_path implementation 2016-05-13 15:22:42 +10:00
7cc4173dea m4/nc_cxx: don't enable libcxx on clang by default
Some system libraries, like boost, may have linked against libstdc++ and
hence make breaking assumptions about std structure layouts.

eg, boost::filesystem::path and std::basic_string
2016-05-13 15:20:36 +10:00
8dc4abb69c m/b/circular: use correct fd for MAP_ANONYMOUS 2016-05-13 13:56:53 +10:00
1bfe4867ad m4: dont try Wno-gnu option under GCC
it will accept anything
2016-05-12 18:23:32 +10:00
3802de5ba3 coord/ops: disable scalar ops for non-arithmetic types 2016-05-12 18:22:55 +10:00
56948f9503 debug_posix: add freebsd constants to tracing code 2016-05-12 18:19:24 +10:00
afa60e9d1f configure: add freebsd library for clock_gettime 2016-05-12 18:16:54 +10:00
87211eb45c configure: cross-platform append for "-ldbghelp" 2016-05-12 18:16:18 +10:00
dc75a8ac34 configure: search for execinfo library
required under freebsd
2016-05-12 18:15:57 +10:00
a8650caa1c configure: disable unused feature test macros
they were causing build errors under freebsd and it appears we aren't
using them anymore...
2016-05-12 18:15:01 +10:00
a22ca0575e Makefile: add posix wrappers to freebsd build 2016-05-12 18:11:13 +10:00
c2310d5d50 build: explicitly allow anonymous structs 2016-05-12 18:06:12 +10:00
950c5ba0d4 ip: avoid temporary in test 2016-05-12 18:00:12 +10:00
829bdc2767 m/b/paged: annotate segv trigger for asan's benefit 2016-05-12 17:59:33 +10:00
e7c547f764 tuple: note why RTTI test was skipped 2016-05-12 17:59:08 +10:00
27b1bfc1ce hmac: print test number in logs 2016-05-12 17:58:52 +10:00
78552cfcb2 rational: express assignment in terms of constructors 2016-05-12 17:55:20 +10:00
48e6446404 ip: express equality in terms of words 2016-05-12 17:54:44 +10:00
7f19e2bcce ip: remove unneeded assignment operator
the constructor handles this for us
2016-05-12 17:54:17 +10:00
5e597eef25 io: remove uneeded stream_error destructor 2016-05-12 17:53:37 +10:00
06be0a128f configure: test for dlsym and shm before their dependants 2016-05-12 17:52:37 +10:00
9d77c01dd3 configure: add debugging options after compilation tests
some debugging options interfere with linker/compilation tests due to
the extra libraries that, for example, asan or ubsan draw into the
build. perform these checks fairly late to avoid these errors.
2016-05-12 17:51:10 +10:00
1ec238638c Makefile: ensure ASAN isn't triggered on deliberate SEGV
some of the memory buffer code triggers a SEGV deliberately in the
testing framework. setting allow_user_segv_handler=true stops it from
crashing our test early.
2016-05-12 17:49:11 +10:00
539188ffde backtrace_execinfo: correct newlines for ostream
if addr2line wasn't found newlines weren't consistent
2016-05-12 17:47:47 +10:00
12f154d0cb stream: work towards streambuf and stream impl 2016-05-12 17:47:22 +10:00
67402eee42 c/xxtea: style 2016-05-12 17:46:13 +10:00
640b4aa6ca build: fix switch/enum coverage warnings
uncovered using clang's -Wswitch-enum
2016-05-12 17:45:29 +10:00
420e4215ef backtrace: test doesn't actually require output 2016-05-12 17:44:44 +10:00
7d96d8dd2f m/b/paged: use correct fd for MAP_ANONYMOUS
linux ignores the fd if you pass MAP_ANONYMOUS, but freebsd will return
with an error
2016-05-12 17:42:21 +10:00
8142944139 json: store numbers natively as uint/sint/real
allows more accurate representations and better error checking.
2016-05-12 17:41:31 +10:00
1f432c13b7 build: avoid type truncation warnings
discovered with clang's -Wshorten-64-to-32
2016-05-12 17:39:33 +10:00
e71bd9f621 maths: move is_integer into headers to avoid param explosion 2016-05-12 17:34:47 +10:00
60286202fd maths: make stirling inline rather than constexpr
stirling uses cmath functions which aren't constexpr, such as std::pow.
this sometimes works under linux/gcc but fails under clang/freebsd
2016-05-12 17:32:41 +10:00
e17158b0bb build: add forgotten cxx headers
discovered testing clang 3.8 under freebsd
2016-05-12 17:31:33 +10:00
452c5511a4 tap: make test function parameter const 2016-05-12 17:28:33 +10:00
d4b951b4db m4: bump autocruft 2016-05-12 17:27:45 +10:00
1a17f27b37 m4: add missing AX_ macros 2016-05-09 14:06:03 +10:00
50f61eb682 m4/nc_cxx: use newer AC_MSG_ERROR 2016-05-09 14:04:58 +10:00
27800de3a0 format: avoid cast warnings for exception constructor 2016-04-28 16:09:14 +10:00