Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-23 07:04:40 +0300
committerEdward Thomson <ethomson@github.com>2016-02-23 07:07:30 +0300
commit7bab2e8fbf302fc7d7732ee92652271015db2a58 (patch)
treed756764c30f83075a079600f776694d13ec35d37 /tests/core
parent5bc93eaea0ce133caab0aa169789f73f0c0bc4ae (diff)
git_libgit2_opts: validate key
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/opts.c6
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"));
+}
+