test: fix process_title failing on linux
Shorten the test string from 40 to 38 characters because the title
length is limited to 39 characters.
Truncation of long titles was introduced intentionally by commit
a0c1d84 (see discussion in joyent/node#5006).
This commit is contained in:
parent
2c21050956
commit
af6e865a07
@ -43,7 +43,7 @@ static void set_title(const char* title) {
|
|||||||
|
|
||||||
TEST_IMPL(process_title) {
|
TEST_IMPL(process_title) {
|
||||||
/* Check for format string vulnerabilities. */
|
/* Check for format string vulnerabilities. */
|
||||||
set_title("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s");
|
set_title("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s");
|
||||||
set_title("new title");
|
set_title("new title");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user