-
Notifications
You must be signed in to change notification settings - Fork 16
INTERNAL: Return an empty string if the value length is 0 #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,13 +81,17 @@ static test_return_t cat_test(void *) | |
memcached_set(memc, test_literal_param("foo"), 0, 0, 0, 0)); | ||
|
||
memcached_return_t rc; | ||
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc)); | ||
char *value= memcached_get(memc, test_literal_param("foo"), 0, 0, &rc); | ||
test_compare(MEMCACHED_SUCCESS, rc); | ||
test_true(value != NULL); | ||
free(value); | ||
|
||
test_true(exec_cmdline(executable, args)); | ||
|
||
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc)); | ||
value= memcached_get(memc, test_literal_param("foo"), 0, 0, &rc); | ||
test_compare(MEMCACHED_SUCCESS, rc); | ||
test_true(value != NULL); | ||
free(value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ง๋ฌธ์
๋๋ค. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ด ํ
์คํธ๋ arcus-c-client์์ ํ
์คํธ ์ฉ๋๋ก ์ ๊ณตํ๋ ์ผ์ข
์ ์ ๋ช
๋ น์ด๋ค์ ๋ค๋ฃจ๊ณ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด, C Client๋ฅผ ์ค์นํ ํ์ |
||
|
||
memcached_free(memc); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,8 +94,10 @@ static test_return_t FOUND_test(void *) | |
memcached_set(memc, test_literal_param("foo2"), 0, 0, 0, 0)); | ||
|
||
memcached_return_t rc; | ||
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc)); | ||
char *value= memcached_get(memc, test_literal_param("foo"), 0, 0, &rc); | ||
test_compare(MEMCACHED_SUCCESS, rc); | ||
test_true(value != NULL); | ||
free(value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ์ฌ๊ธฐ๋ ์ง๋ฌธ์
๋๋ค. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ํด๋น ํ ์คํธ ๋ํ ์์ cat_test์ ๋์ผํฉ๋๋ค. |
||
|
||
test_true(exec_cmdline(executable, args)); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,8 +81,10 @@ static test_return_t rm_test(void *) | |
memcached_set(memc, test_literal_param("foo"), 0, 0, 0, 0)); | ||
|
||
memcached_return_t rc; | ||
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc)); | ||
char *value= memcached_get(memc, test_literal_param("foo"), 0, 0, &rc); | ||
test_compare(MEMCACHED_SUCCESS, rc); | ||
test_true(value != NULL); | ||
free(value); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ํ
์คํธ ์ฝ๋๋ฅผ ๋ณด๋, ์ผ๊ด๋๊ฒ |
||
|
||
test_true(exec_cmdline(executable, args)); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ง๋ฌธ์ ๋๋ค.
์ฌ๊ธฐ test์์ memcached_get() 2ํ ์ํํ๋ ์ด์ ๋ ๋ฌด์์ผ๊น์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ชจ๋ฅด๊ฒ ์ผ๋ ํฐ ์๋ฏธ๋ ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
libmemcached์์ ํด๋น ๋ฒ๊ทธ์ ๋ํ ์ค๋ช ์ ๋ฐ๋ก ์์์ต๋๋ค.