Fix for builtin_test crash

https://github.com/fish-shell/fish-shell/issues/497
This commit is contained in:
ridiculousfish
2013-01-06 14:48:46 -08:00
parent 8a357e1866
commit bf3e4126b2
3 changed files with 11 additions and 10 deletions

View File

@@ -922,6 +922,9 @@ static void test_test()
/* These should be errors */
assert(run_test_test(1, L"foo bar"));
assert(run_test_test(1, L"foo bar baz"));
/* This crashed */
assert(run_test_test(1, L"1 = 1 -a = 1"));
}
/** Testing colors */