mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Enable some test_illegal_command_exit_code tests
A comment suggests these cause bad_alloc, but this doesn't seem to happen. If it does happen, we want to hit it so we can track it down!
This commit is contained in:
parent
fc803c75a6
commit
bb686a2236
1 changed files with 2 additions and 4 deletions
|
@ -4080,10 +4080,8 @@ static void test_illegal_command_exit_code(void) {
|
||||||
{L"**", STATUS_ILLEGAL_CMD},
|
{L"**", STATUS_ILLEGAL_CMD},
|
||||||
{L"%", STATUS_ILLEGAL_CMD},
|
{L"%", STATUS_ILLEGAL_CMD},
|
||||||
{L"%test", STATUS_ILLEGAL_CMD},
|
{L"%test", STATUS_ILLEGAL_CMD},
|
||||||
// the following two inputs cause errors during tests for unknown reasons
|
{L"?", STATUS_ILLEGAL_CMD},
|
||||||
// ("terminate called after throwing an instance of 'std::bad_alloc'")
|
{L"abc?def", STATUS_ILLEGAL_CMD},
|
||||||
// {L"?", STATUS_ILLEGAL_CMD},
|
|
||||||
// {L"abc?def", STATUS_ILLEGAL_CMD},
|
|
||||||
{L") ", STATUS_ILLEGAL_CMD}};
|
{L") ", STATUS_ILLEGAL_CMD}};
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
Loading…
Reference in a new issue