diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bitbuf.test.c | 2 | ||||
-rw-r--r-- | test/hook.test.c | 8 | ||||
-rw-r--r-- | test/kv.test.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/bitbuf.test.c b/test/bitbuf.test.c index 58d1c4d..324a7f6 100644 --- a/test/bitbuf.test.c +++ b/test/bitbuf.test.c @@ -14,7 +14,7 @@ static union { } bb_buf; static struct bitbuf bb = {bb_buf.buf, 512, 512 * 8, 0, false, false, "test"}; -TEST("The possible UB in bitbuf_appendbuf shouldn't trigger horrible bugs", 0) { +TEST("The possible UB in bitbuf_appendbuf shouldn't trigger horrible bugs") { char unalign[3] = {'X', 'X', 'X'}; char _buf[32 + sizeof(bitbuf_cell)]; char *buf = _buf; diff --git a/test/hook.test.c b/test/hook.test.c index 50e07a8..b2e841c 100644 --- a/test/hook.test.c +++ b/test/hook.test.c @@ -4,7 +4,7 @@ #ifdef _WIN32 -#include "../src/udis86.c" +#include "../src/x86.c" #include "../src/hook.c" #include <stdarg.h> @@ -32,20 +32,20 @@ static int other_hook(int a, int b) { return orig_other_function(a, b) + 5; } -TEST("Inline hooks should be able to wrap the original function", 0) { +TEST("Inline hooks should be able to wrap the original function") { orig_some_function = hook_inline(&some_function, &some_hook); if (!orig_some_function) return false; return some_function(5, 5) == 15; } -TEST("Inline hooks should be removable again", 0) { +TEST("Inline hooks should be removable again") { orig_some_function = hook_inline(&some_function, &some_hook); if (!orig_some_function) return false; unhook_inline(orig_some_function); return some_function(5, 5) == 10; } -TEST("Multiple functions should be able to be inline hooked at once", 0) { +TEST("Multiple functions should be able to be inline hooked at once") { orig_some_function = hook_inline(&some_function, &some_hook); if (!orig_some_function) return false; diff --git a/test/kv.test.c b/test/kv.test.c index 12f2801..7f82b8a 100644 --- a/test/kv.test.c +++ b/test/kv.test.c @@ -33,7 +33,7 @@ Val2// comment\n\ "; static const int sz = sizeof(data) - 1; -TEST("parsing should work with any buffer size", 0) { +TEST("parsing should work with any buffer size") { for (int chunksz = 3; chunksz <= sz; ++chunksz) { struct kv_parser kvp = {0}; // sending data in chunks to test reentrancy |