Skip to content

Commit

Permalink
Disable tasks and related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertnetymk committed Apr 6, 2016
1 parent 78121c5 commit 15e0371
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/parser/Parser/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ lexer =
"repeat", "for", "while", "get", "yield", "eos", "getNext", "new", "this",
"await", "suspend", "and", "or", "not", "true", "false", "null", "embed",
"body", "end", "where", "Fut", "Par", "Stream", "import", "qualified",
"bundle", "peer", "async", "finish", "foreach", "trait", "require", "val",
"bundle", "peer", "finish", "trait", "require", "val",
"Maybe", "Just", "Nothing", "match", "with", "when","liftf", "liftv",
"extract", "each"
],
Expand Down
5 changes: 3 additions & 2 deletions src/runtime/pony/libponyrt/sched/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ static void *run_thread(void *arg)

// setup task runner
assert(this_encore_task==NULL);
this_encore_task = encore_create(ctx, task_gettype());
scheduler_add(ctx, (pony_actor_t*) this_encore_task);
// TODO Re-enable tasks runners
// this_encore_task = encore_create(ctx, task_gettype());
// scheduler_add(ctx, (pony_actor_t*) this_encore_task);

run(sched);

Expand Down
5 changes: 3 additions & 2 deletions src/tests/encore/basic/nameClash.enc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Foo
class Main
def main() : void
let default = 42 in{
async{strlen(default)};
strlen(default);
-- async{};
print "Hello, Ponyworld!"
}
}
1 change: 1 addition & 0 deletions src/tests/encore/basic/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ failed=0
failed_list=()

skipped=()
skipped+=(foreach_construct.enc)

os=$(uname -s)
if [ $os == "Linux" ]
Expand Down
8 changes: 8 additions & 0 deletions src/tests/encore/concurrency/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ failed=0
failed_list=()

skipped=()
skipped+=(async_block.enc)
skipped+=(async_chain.enc)
skipped+=(async.enc)
skipped+=(async_finish.enc)
skipped+=(async_finish_stmts.enc)
skipped+=(async_force_gc.enc)
skipped+=(async_foreach.enc)
skipped+=(global_async.enc)

os=$(uname -s)
if [ $os == "Linux" ]
Expand Down

0 comments on commit 15e0371

Please sign in to comment.