mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Parser limps into existence
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
#include "postfork.h"
|
||||
#include "signal.h"
|
||||
#include "highlight.h"
|
||||
#include "expression.h"
|
||||
|
||||
/**
|
||||
The number of tests to run
|
||||
@@ -1717,6 +1718,12 @@ void history_tests_t::test_history_speed(void)
|
||||
delete hist;
|
||||
}
|
||||
|
||||
static void test_new_parser(void)
|
||||
{
|
||||
say(L"Testing new parser!");
|
||||
parse_t parser;
|
||||
parser.parse(L"echo hello");
|
||||
}
|
||||
|
||||
/**
|
||||
Main test
|
||||
@@ -1733,12 +1740,15 @@ int main(int argc, char **argv)
|
||||
say(L"Lines beginning with '(ignore):' are not errors, they are warning messages\ngenerated by the fish parser library when given broken input, and can be\nignored. All actual errors begin with 'Error:'.");
|
||||
set_main_thread();
|
||||
setup_fork_guards();
|
||||
proc_init();
|
||||
//proc_init();
|
||||
event_init();
|
||||
function_init();
|
||||
builtin_init();
|
||||
reader_init();
|
||||
env_init();
|
||||
|
||||
test_new_parser();
|
||||
return 0;
|
||||
|
||||
test_format();
|
||||
test_escape();
|
||||
|
||||
Reference in New Issue
Block a user