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_libgit2.h | |
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_libgit2.h')
-rw-r--r-- | tests/clar_libgit2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h index 915111244..48c26b054 100644 --- a/tests/clar_libgit2.h +++ b/tests/clar_libgit2.h @@ -65,6 +65,8 @@ void clar__assert_equal_file( const char *file, int line); +#define cl_skip(reason) do { printf("skipping %s::%s; %s\n", clar_active_suite(), clar_active_test(), reason); return; } while (0) + /* * Some utility macros for building long strings */ |