ruby/test/fiber
Samuel Williams ea8a7287e2
Add support for `sockaddr_un` on Windows. (#6513)
* Windows: Fix warning about undefined if_indextoname()

* Windows: Fix UNIXSocket on MINGW and make .pair more reliable

* Windows: Use nonblock=true for read tests with scheduler

* Windows: Move socket detection from File.socket? to File.stat

Add S_IFSOCK to Windows and interpret reparse points accordingly.
Enable tests that work now.

* Windows: Use wide-char functions to UNIXSocket

This fixes behaviour with non-ASCII characters.
It also fixes deletion of temporary UNIXSocket.pair files.

* Windows: Add UNIXSocket tests for specifics of Windows impl.

* Windows: fix VC build due to missing _snwprintf

Avoid usage of _snwprintf, since it fails linking ruby.dll like so:

  linking shared-library x64-vcruntime140-ruby320.dll
  x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol snwprintf
  x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol vsnwprintf_l

whereas linking miniruby.exe succeeds.

This patch uses snprintf on the UTF-8 string instead.

Also remove branch GetWindowsDirectoryW, since it doesn't work.

* Windows: Fix dangling symlink test failures

Co-authored-by: Lars Kanis <kanis@comcard.de>
2022-11-17 14:50:25 -08:00
..
autoload.rb Use a proper mutex for autoloading features. (#5788) 2022-05-08 10:22:58 +12:00
http.rb Expose scheduler as public interface & bug fixes. (#3945) 2021-02-09 19:39:56 +13:00
scheduler.rb Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588) 2022-10-20 13:38:52 +13:00
test_address_resolve.rb We don't care about actual hostname resolution. (#6652) 2022-11-01 17:10:31 +13:00
test_backtrace.rb test/fiber/test_backtrace.rb: prevent a warning 2020-08-18 14:36:39 +09:00
test_enumerator.rb Add support for `sockaddr_un` on Windows. (#6513) 2022-11-17 14:50:25 -08:00
test_io.rb Add support for `sockaddr_un` on Windows. (#6513) 2022-11-17 14:50:25 -08:00
test_io_buffer.rb Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
test_mutex.rb mutex: Raise a ThreadError when detecting a fiber deadlock (#6680) 2022-11-09 00:43:16 +13:00
test_process.rb `rb_fiber_terminate` must not return [Bug #18497] 2022-01-19 19:57:16 +09:00
test_ractor.rb Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
test_scheduler.rb Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588) 2022-10-20 13:38:52 +13:00
test_sleep.rb Close leaked file descriptors 2021-06-15 00:02:15 +09:00
test_thread.rb Fix potential hang when joining threads. 2021-08-03 22:23:48 +12:00
test_timeout.rb Fix handling of timeout accessing scheduler outside of non-blocking context. 2021-03-30 18:38:42 +13:00