diff options
author | Edward Thomson <ethomson@github.com> | 2016-02-23 07:04:40 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-02-23 07:07:30 +0300 |
commit | 7bab2e8fbf302fc7d7732ee92652271015db2a58 (patch) | |
tree | d756764c30f83075a079600f776694d13ec35d37 /tests/core | |
parent | 5bc93eaea0ce133caab0aa169789f73f0c0bc4ae (diff) |
git_libgit2_opts: validate key
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/core/opts.c b/tests/core/opts.c index 3173c648b..72408cbe8 100644 --- a/tests/core/opts.c +++ b/tests/core/opts.c @@ -17,3 +17,9 @@ void test_core_opts__readwrite(void) cl_assert(new_val == old_val); } + +void test_core_opts__invalid_option(void) +{ + cl_git_fail(git_libgit2_opts(-1, "foobar")); +} + |