Skip to content

Commit

Permalink
[GH #799] cygwin sometimes hangs at alarm and task
Browse files Browse the repository at this point in the history
signal delivery is a bit too slow and unreliable on cygwin most of the time
  • Loading branch information
Reini Urban committed Jul 18, 2012
1 parent 41da5a5 commit eb328cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 5 additions & 3 deletions t/pmc/alarm.t
Expand Up @@ -9,12 +9,14 @@
.include 'test_more.pir'

$S0 = sysinfo .SYSINFO_PARROT_OS
if $S0 == 'MSWin32' goto run_win32_tests
if $S0 == 'MSWin32' goto run_windows_tests
if $S0 == 'cygwin' goto run_windows_tests
goto run_unix_tests
run_win32_tests:
run_windows_tests:
say "1..1"
say "ok 1 - All tests skipped on Win32"
say "ok 1 - All tests skipped on Windows"
goto all_tests_end

run_unix_tests:

plan(7)
Expand Down
12 changes: 10 additions & 2 deletions t/pmc/task.t
Expand Up @@ -9,15 +9,23 @@

$S0 = sysinfo .SYSINFO_PARROT_OS
if $S0 == 'MSWin32' goto run_win32_tests
if $S0 == 'cygwin' goto run_cygwin_tests
goto run_unix_tests

run_win32_tests:
say "1..1"
say "ok 1 - All tests skipped on Win32"
exit 0
run_unix_tests:

plan(10)
run_cygwin_tests:
say "1..5"
tasks_run()
task_send_recv()
say "# cygwin has too slow and unreliable signals"
exit 0

run_unix_tests:
plan(10)
tasks_run()
task_send_recv()
task_kill()
Expand Down

0 comments on commit eb328cf

Please sign in to comment.