diff options
author | Russell Belfer <rb@github.com> | 2014-04-02 09:47:35 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-02 09:47:35 -0700 |
commit | 2e9c07f5eda5070bdcf9f962809375e5e3c561bb (patch) | |
tree | 0581602ed3fbcf7474366a88e100fb4f3017726c /tests/clar.c | |
parent | ada157b2375bea8ed0c7a71320a3325a9903ebd7 (diff) | |
download | libgit2-rb/dont-count-on-libgit2-source.tar.gz |
Create cl_skip macro and use it to skip testsrb/dont-count-on-libgit2-source
There are a few tests that we need to skip in some cases. This
adds a cl_skip macro to return from the current test and print a
nicely formatted reason for doing so.
Diffstat (limited to 'tests/clar.c')
-rw-r--r-- | tests/clar.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/clar.c b/tests/clar.c index 2f81a1923..5eb1c05f6 100644 --- a/tests/clar.c +++ b/tests/clar.c @@ -555,6 +555,16 @@ void cl_set_cleanup(void (*cleanup)(void *), void *opaque) _clar.local_cleanup_payload = opaque; } +const char *clar_active_suite(void) +{ + return _clar.active_suite; +} + +const char *clar_active_test(void) +{ + return _clar.active_test; +} + #include "clar/sandbox.h" #include "clar/fixtures.h" #include "clar/fs.h" |