test: test_launch_get(): Fix typo and remove redundant call
This commit is contained in:
parent
7b859d0aed
commit
f662398ac3
4
test.c
4
test.c
@ -618,9 +618,9 @@ int test_launch_get()
|
|||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
char *content = exile_launch_get(¶ms, &n);
|
char *content = exile_launch_get(¶ms, &n);
|
||||||
unsigned int len = strlen(LAUNCH_GET_TEST_STR);
|
unsigned int len = strlen(LAUNCH_GET_TEST_STR);
|
||||||
if(n != strlen(LAUNCH_GET_TEST_STR))
|
if(n != len)
|
||||||
{
|
{
|
||||||
LOG("Lenght does does not match: %lu vs %u\n", n, len);
|
LOG("Lenght does not match: %lu vs %u\n", n, len);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(strcmp(content, LAUNCH_GET_TEST_STR) != 0)
|
if(strcmp(content, LAUNCH_GET_TEST_STR) != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user