Avoid slow test setup if seed flag is set to -1
This commit is contained in:
parent
f620843591
commit
8300f24fec
4 changed files with 12 additions and 5 deletions
|
|
@ -20,6 +20,8 @@ static void assert_correct_tree_size(TSDocument *document, string content) {
|
|||
|
||||
START_TEST
|
||||
|
||||
if (TREE_SITTER_SEED == -1) return;
|
||||
|
||||
vector<string> test_languages({
|
||||
"javascript",
|
||||
"json",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
START_TEST
|
||||
|
||||
if (TREE_SITTER_SEED == -1) return;
|
||||
|
||||
string grammars_dir_path = join_path({"test", "fixtures", "test_grammars"});
|
||||
vector<string> test_languages = list_directory(grammars_dir_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue