diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-24 20:32:56 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-25 00:49:10 +0300 |
commit | a65992355dac71490f4b22b3f2c0d55a1beca01b (patch) | |
tree | dfdc39361e6007cfa89e4d7ff464d958d8ddbbe1 /tests | |
parent | 189aad45af733316ddecb01e750daed5f792fa07 (diff) |
buffer: make use of EINVALID for growing a borrowed buffer
This explains more closely what happens. While here, set an error
message.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/buffer.c b/tests/core/buffer.c index cc2d7bbcc..0e7026a9c 100644 --- a/tests/core/buffer.c +++ b/tests/core/buffer.c @@ -1164,5 +1164,5 @@ void test_core_buffer__dont_grow_borrowed(void) cl_assert_equal_i(0, buf.asize); cl_assert_equal_i(strlen(somestring) + 1, buf.size); - cl_git_fail_with(GIT_EINVALIDSPEC, git_buf_grow(&buf, 1024)); + cl_git_fail_with(GIT_EINVALID, git_buf_grow(&buf, 1024)); } |