forked from github/server
re-enable a test that supposedly breaks on travis (find out why)
fix a potential null-pointer crash in rename_cmd
This commit is contained in:
parent
7e2364c296
commit
177f8f5288
2 changed files with 2 additions and 2 deletions
|
@ -1622,7 +1622,7 @@ bool renamed_building(const building * b)
|
||||||
|
|
||||||
static int rename_cmd(unit * u, order * ord, char **s, const char *s2)
|
static int rename_cmd(unit * u, order * ord, char **s, const char *s2)
|
||||||
{
|
{
|
||||||
if (!s2[0]) {
|
if (!s2 || !s2[0]) {
|
||||||
cmistake(u, ord, 84, MSG_EVENT);
|
cmistake(u, ord, 84, MSG_EVENT);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1135,7 +1135,7 @@ CuSuite *get_laws_suite(void)
|
||||||
SUITE_ADD_TEST(suite, test_mail_faction_no_msg);
|
SUITE_ADD_TEST(suite, test_mail_faction_no_msg);
|
||||||
SUITE_ADD_TEST(suite, test_mail_region_no_msg);
|
SUITE_ADD_TEST(suite, test_mail_region_no_msg);
|
||||||
SUITE_ADD_TEST(suite, test_mail_faction_no_target);
|
SUITE_ADD_TEST(suite, test_mail_faction_no_target);
|
||||||
(void)test_luck_message; /* disabled, breaks on travis */
|
SUITE_ADD_TEST(suite, test_luck_message);
|
||||||
|
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue