Commit Graph

184 Commits

Author SHA1 Message Date
Nils O. Selåsdal ddf82372e1 Include test when NDEBUG is not defined (checking for DEBUG was
the wrong thing to do when building in release with assertions on)
2013-12-18 18:40:55 +01:00
Nils O. Selåsdal a681e9044f Use UC_TAILQ in udp_heartbeat 2013-12-10 23:08:05 +01:00
Nils O. Selåsdal 2dc5242fc0 Use TailQ in mbuf 2013-12-10 01:11:31 +01:00
Nils O. Selåsdal f6badb41a2 Move UC_ASSERT/NOTREACHED to backtrace.h 2013-12-08 00:43:22 +01:00
Nils O. Selåsdal f18de5f269 Test dbuf_take_fail aborting in DEBUG mode 2013-12-07 12:23:30 +01:00
Nils O. Selåsdal 784dc1cecb Teach uc_hex_decode to skip spaces 2013-12-06 23:10:32 +01:00
Nils O. Selåsdal 59b4c3f57e Implement uc_hex_encode_delim without snprintf, fix length of
uc_hex_encode_delim when truncated output.
2013-12-06 22:47:16 +01:00
Nils O. Selåsdal 565de6ace7 Add uc_dstr_copy 2013-12-05 01:24:41 +01:00
Nils O. Selåsdal b5e1d086a4 Add DStr sprintf 2013-12-04 21:33:16 +01:00
Nils O. Selåsdal d81e9b760a More docs. And test put_filter 2013-12-04 20:44:47 +01:00
Nils O. Selåsdal 8749270ca4 Add DStr docs.
Small test changes
2013-12-04 20:32:06 +01:00
Nils O. Selåsdal 6fdaa83dee Run DStr tests 2013-12-04 19:58:59 +01:00
Nils O. Selåsdal bbbe912fba Initial version of struct DStr 2013-12-04 19:58:38 +01:00
Nils O. Selåsdal 2b022aeddc Make the heapsort test comparison work.. 2013-12-03 17:29:00 +01:00
Nils O. Selåsdal 4caf2573fb Check of count or size is 0 in heapsort 2013-12-03 14:29:57 +01:00
Nils O. Selåsdal 70fb352656 Fix heapsort, add test 2013-12-03 11:30:09 +01:00
Nils O. Selåsdal 6dc59ccbf8 Add macros for iterating the containing entry 2013-11-30 13:40:05 +01:00
Nils O. Selåsdal 6156fcbbb5 Add tailq example 2013-11-28 18:30:14 +01:00
Nils O. Selåsdal 04f101c699 initialize peer to Unknown 2013-11-26 23:58:50 +01:00
Nils O. Selåsdal e7d7f4b862 Add -k argument to test_runner to specify running only one test suite
alter --xml of test_runner to just -x
2013-11-26 18:17:07 +01:00
Nils O. Selåsdal 59f6d99419 Remove a wrong test in test_mbuf.c 2013-11-25 23:42:29 +01:00
Nils O. Selåsdal dbe2f174a8 Add uc_mbuf_extend_headroom function, for growing an mbuf 2013-11-25 23:38:13 +01:00
Nils O. Selåsdal 306a3d2a90 Add uc_mbuf_head accessor function 2013-11-25 20:52:43 +01:00
Nils O. Selåsdal 3d2e0ce540 tabs->spaces 2013-11-22 20:06:05 +01:00
Nils O. Selåsdal 8083fa54cf Split uc_human_bytesz in uc_human_bytesz_dec/uc_human_bytesz_bin, for
decimal and binary conversion (http://en.wikipedia.org/wiki/Megabyte)
2013-11-19 11:33:43 +01:00
Nils O. Selåsdal ac95b1002c use ck_assert_int_eq for a bit better debugging help 2013-11-18 23:49:39 +01:00
Nils O. Selåsdal 1d709faf20 Add a note about being fragile.. 2013-11-13 18:07:41 +01:00
Nils O. Selåsdal eceda7be70 Generalize the backing type of bitvec 2013-10-28 23:21:26 +01:00
Nils O. Selåsdal 1b563e797b Have check get the fork status from env. variable (set CK_FORK_GETENV
flag)
2013-10-24 22:28:17 +02:00
Nils O. Selåsdal c1609c2a57 Poison the removed node in tests, to help ensure nothing fishy is going
on
2013-10-24 22:14:41 +02:00
Nils O. Selåsdal 0acb4789b0 Add FOREACH_SAFE macros + tests 2013-10-24 22:13:16 +02:00
Nils O. Selåsdal 03124601d8 Test failing to find a hash node 2013-10-24 21:18:27 +02:00
Nils O. Selåsdal 7ff33c113b Test UC_HTABLE_FOR_EACH 2013-10-17 22:38:00 +02:00
Nils O. Selåsdal b0172a365e test uc_htable_clear. Add comments, fix uc_htable_next 2013-10-17 22:28:32 +02:00
Nils O. Selåsdal 0f0ae6dd1e Add uc_htable_remove + test 2013-10-17 22:12:48 +02:00
Nils O. Selåsdal 6c76759355 Add more htable tests 2013-10-17 21:29:55 +02:00
Nils O. Selåsdal 9f41543fb1 hash table test 2013-10-17 21:00:57 +02:00
Nils O. Selåsdal 4b13f1f1c9 Merge branch 'dev' of /var/lib/git/libucore into dev 2013-10-17 21:00:32 +02:00
Nils O. Selåsdal 987db2d096 First iteration of hash table 2013-10-17 21:00:05 +02:00
Nils O. Selåsdal b91d5870b8 Update rate_limit example 2013-10-16 19:23:16 +02:00
Nils O. Selåsdal 262958b8a0 Rework rate limit to only refill when needed 2013-10-16 19:22:53 +02:00
Nils O. Selåsdal c1ef4af4ad Changed test program 2013-10-15 20:14:35 +02:00
Nils O. Selåsdal 52eb710db7 Add rate limit test 2013-10-12 01:29:00 +02:00
Nils O. Selåsdal 212fecae08 Move rate limit example to test/ 2013-10-09 22:59:47 +02:00
Nils O. Selåsdal 1f4e41df3a Test inserting priority messages 2013-10-05 00:56:41 +02:00
Nils O. Selåsdal f4b1d81dcf test uc_thread_queue_clear 2013-10-03 23:42:12 +02:00
Nils O. Selåsdal d9517ad868 Make the thread queue walk function take a cookie to the callback
and implement a _clear() function to clear out the queue
2013-10-03 22:04:33 +02:00
Nils O. Selåsdal 6456d8abe0 Include BCD length macros in test 2013-10-02 22:15:55 +02:00
Nils O. Selåsdal d619d58ccd Fix overflow in strv_null_terminate, and don't make it increase .cnt 2013-10-01 22:30:39 +02:00
Nils O. Selåsdal dd517a5d85 Prefix CONTAINER_OF with UC_ 2013-09-28 23:45:51 +02:00