mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add basic test for updated IO wait functions.
This commit is contained in:
parent
39f99b8176
commit
5e75280c8e
Notes:
git
2021-06-29 20:55:06 +09:00
5 changed files with 401 additions and 49 deletions
328
ext/-test-/wait/depend
Normal file
328
ext/-test-/wait/depend
Normal file
|
@ -0,0 +1,328 @@
|
|||
# AUTOGENERATED DEPENDENCIES START
|
||||
wait.o: $(RUBY_EXTCONF_H)
|
||||
wait.o: $(arch_hdrdir)/ruby/config.h
|
||||
wait.o: $(hdrdir)/ruby/assert.h
|
||||
wait.o: $(hdrdir)/ruby/backward.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/assume.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/attributes.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/bool.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/gcc_version_since.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/inttypes.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/limits.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/long_long.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/stdalign.h
|
||||
wait.o: $(hdrdir)/ruby/backward/2/stdarg.h
|
||||
wait.o: $(hdrdir)/ruby/defines.h
|
||||
wait.o: $(hdrdir)/ruby/encoding.h
|
||||
wait.o: $(hdrdir)/ruby/intern.h
|
||||
wait.o: $(hdrdir)/ruby/internal/anyargs.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/char.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/double.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/fixnum.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/gid_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/int.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/intptr_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/long.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/long_long.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/mode_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/off_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/pid_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/short.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/size_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/st_data_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/arithmetic/uid_t.h
|
||||
wait.o: $(hdrdir)/ruby/internal/assume.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/alloc_size.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/artificial.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/cold.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/const.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/constexpr.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/deprecated.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/diagnose_if.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/enum_extensibility.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/error.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/flag_enum.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/forceinline.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/format.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/maybe_unused.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/noalias.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/nodiscard.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/noexcept.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/noinline.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/nonnull.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/noreturn.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/pure.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/restrict.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/returns_nonnull.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/warning.h
|
||||
wait.o: $(hdrdir)/ruby/internal/attr/weakref.h
|
||||
wait.o: $(hdrdir)/ruby/internal/cast.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/apple.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/clang.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/gcc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/intel.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/msvc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_is/sunpro.h
|
||||
wait.o: $(hdrdir)/ruby/internal/compiler_since.h
|
||||
wait.o: $(hdrdir)/ruby/internal/config.h
|
||||
wait.o: $(hdrdir)/ruby/internal/constant_p.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rarray.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rbasic.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rbignum.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rclass.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rdata.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rfile.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rhash.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/robject.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rregexp.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rstring.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rstruct.h
|
||||
wait.o: $(hdrdir)/ruby/internal/core/rtypeddata.h
|
||||
wait.o: $(hdrdir)/ruby/internal/ctype.h
|
||||
wait.o: $(hdrdir)/ruby/internal/dllexport.h
|
||||
wait.o: $(hdrdir)/ruby/internal/dosish.h
|
||||
wait.o: $(hdrdir)/ruby/internal/error.h
|
||||
wait.o: $(hdrdir)/ruby/internal/eval.h
|
||||
wait.o: $(hdrdir)/ruby/internal/event.h
|
||||
wait.o: $(hdrdir)/ruby/internal/fl_type.h
|
||||
wait.o: $(hdrdir)/ruby/internal/gc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/glob.h
|
||||
wait.o: $(hdrdir)/ruby/internal/globals.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/attribute.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/builtin.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/c_attribute.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/cpp_attribute.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/declspec_attribute.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/extension.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/feature.h
|
||||
wait.o: $(hdrdir)/ruby/internal/has/warning.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/array.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/bignum.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/class.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/compar.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/complex.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/cont.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/dir.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/enum.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/enumerator.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/error.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/eval.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/file.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/gc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/hash.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/io.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/load.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/marshal.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/numeric.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/object.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/parse.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/proc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/process.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/random.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/range.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/rational.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/re.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/ruby.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/select.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/select/largesize.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/signal.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/sprintf.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/string.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/struct.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/thread.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/time.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/variable.h
|
||||
wait.o: $(hdrdir)/ruby/internal/intern/vm.h
|
||||
wait.o: $(hdrdir)/ruby/internal/interpreter.h
|
||||
wait.o: $(hdrdir)/ruby/internal/iterator.h
|
||||
wait.o: $(hdrdir)/ruby/internal/memory.h
|
||||
wait.o: $(hdrdir)/ruby/internal/method.h
|
||||
wait.o: $(hdrdir)/ruby/internal/module.h
|
||||
wait.o: $(hdrdir)/ruby/internal/newobj.h
|
||||
wait.o: $(hdrdir)/ruby/internal/rgengc.h
|
||||
wait.o: $(hdrdir)/ruby/internal/scan_args.h
|
||||
wait.o: $(hdrdir)/ruby/internal/special_consts.h
|
||||
wait.o: $(hdrdir)/ruby/internal/static_assert.h
|
||||
wait.o: $(hdrdir)/ruby/internal/stdalign.h
|
||||
wait.o: $(hdrdir)/ruby/internal/stdbool.h
|
||||
wait.o: $(hdrdir)/ruby/internal/symbol.h
|
||||
wait.o: $(hdrdir)/ruby/internal/value.h
|
||||
wait.o: $(hdrdir)/ruby/internal/value_type.h
|
||||
wait.o: $(hdrdir)/ruby/internal/variable.h
|
||||
wait.o: $(hdrdir)/ruby/internal/warning_push.h
|
||||
wait.o: $(hdrdir)/ruby/internal/xmalloc.h
|
||||
wait.o: $(hdrdir)/ruby/io.h
|
||||
wait.o: $(hdrdir)/ruby/missing.h
|
||||
wait.o: $(hdrdir)/ruby/onigmo.h
|
||||
wait.o: $(hdrdir)/ruby/oniguruma.h
|
||||
wait.o: $(hdrdir)/ruby/ruby.h
|
||||
wait.o: $(hdrdir)/ruby/st.h
|
||||
wait.o: $(hdrdir)/ruby/subst.h
|
||||
wait.o: wait.c
|
||||
wait_for_single_fd.o: $(RUBY_EXTCONF_H)
|
||||
wait_for_single_fd.o: $(arch_hdrdir)/ruby/config.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/assert.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/assume.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/attributes.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/bool.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/gcc_version_since.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/inttypes.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/limits.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/long_long.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/stdalign.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/backward/2/stdarg.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/defines.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/encoding.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/intern.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/anyargs.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/char.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/double.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/fixnum.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/gid_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/int.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/intptr_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/long.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/long_long.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/mode_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/off_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/pid_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/short.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/size_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/st_data_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/arithmetic/uid_t.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/assume.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/alloc_size.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/artificial.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/cold.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/const.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/constexpr.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/deprecated.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/diagnose_if.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/enum_extensibility.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/error.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/flag_enum.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/forceinline.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/format.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/maybe_unused.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/noalias.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/nodiscard.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/noexcept.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/noinline.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/nonnull.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/noreturn.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/pure.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/restrict.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/returns_nonnull.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/warning.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/attr/weakref.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/cast.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/apple.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/clang.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/gcc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/intel.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/msvc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_is/sunpro.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/compiler_since.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/config.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/constant_p.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rarray.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rbasic.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rbignum.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rclass.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rdata.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rfile.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rhash.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/robject.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rregexp.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rstring.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rstruct.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/core/rtypeddata.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/ctype.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/dllexport.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/dosish.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/error.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/eval.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/event.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/fl_type.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/gc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/glob.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/globals.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/attribute.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/builtin.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/c_attribute.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/cpp_attribute.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/declspec_attribute.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/extension.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/feature.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/has/warning.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/array.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/bignum.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/class.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/compar.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/complex.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/cont.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/dir.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/enum.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/enumerator.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/error.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/eval.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/file.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/gc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/hash.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/io.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/load.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/marshal.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/numeric.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/object.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/parse.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/proc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/process.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/random.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/range.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/rational.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/re.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/ruby.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/select.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/select/largesize.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/signal.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/sprintf.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/string.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/struct.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/thread.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/time.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/variable.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/intern/vm.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/interpreter.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/iterator.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/memory.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/method.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/module.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/newobj.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/rgengc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/scan_args.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/special_consts.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/static_assert.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/stdalign.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/stdbool.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/symbol.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/value.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/value_type.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/variable.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/warning_push.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/internal/xmalloc.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/io.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/missing.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/onigmo.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/oniguruma.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/ruby.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/st.h
|
||||
wait_for_single_fd.o: $(hdrdir)/ruby/subst.h
|
||||
wait_for_single_fd.o: wait_for_single_fd.c
|
||||
# AUTOGENERATED DEPENDENCIES END
|
2
ext/-test-/wait/extconf.rb
Normal file
2
ext/-test-/wait/extconf.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/wait")
|
39
ext/-test-/wait/wait.c
Normal file
39
ext/-test-/wait/wait.c
Normal file
|
@ -0,0 +1,39 @@
|
|||
#include "ruby/ruby.h"
|
||||
#include "ruby/io.h"
|
||||
|
||||
static VALUE
|
||||
io_wait(VALUE klass, VALUE io, VALUE events, VALUE timeout)
|
||||
{
|
||||
return rb_io_wait(io, events, timeout);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
io_maybe_wait(VALUE klass, VALUE error, VALUE io, VALUE events, VALUE timeout)
|
||||
{
|
||||
return rb_io_maybe_wait(RB_NUM2INT(error), io, events, timeout);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
io_maybe_wait_readable(VALUE klass, VALUE error, VALUE io, VALUE timeout)
|
||||
{
|
||||
return RB_INT2NUM(
|
||||
rb_io_maybe_wait_readable(RB_NUM2INT(error), io, timeout)
|
||||
);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
io_maybe_wait_writable(VALUE klass, VALUE error, VALUE io, VALUE timeout)
|
||||
{
|
||||
return RB_INT2NUM(
|
||||
rb_io_maybe_wait_writable(RB_NUM2INT(error), io, timeout)
|
||||
);
|
||||
}
|
||||
|
||||
void
|
||||
Init_wait(void)
|
||||
{
|
||||
rb_define_singleton_method(rb_cIO, "io_wait", io_wait, 3);
|
||||
rb_define_singleton_method(rb_cIO, "io_maybe_wait", io_maybe_wait, 4);
|
||||
rb_define_singleton_method(rb_cIO, "io_maybe_wait_readable", io_maybe_wait_readable, 3);
|
||||
rb_define_singleton_method(rb_cIO, "io_maybe_wait_writable", io_maybe_wait_writable, 3);
|
||||
}
|
32
test/-ext-/wait/test_wait.rb
Normal file
32
test/-ext-/wait/test_wait.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
|
||||
class TestWait < Test::Unit::TestCase
|
||||
require '-test-/wait'
|
||||
|
||||
def test_wait_for_valid_fd
|
||||
IO.pipe do |r,w|
|
||||
rc = IO.io_wait(w, IO::WRITABLE, nil)
|
||||
assert_equal IO::WRITABLE, rc
|
||||
end
|
||||
end
|
||||
|
||||
def test_wait_for_invalid_fd
|
||||
r, w = IO.pipe
|
||||
r.close
|
||||
|
||||
IO.for_fd(w.fileno).close
|
||||
|
||||
assert_raise(Errno::EBADF) do
|
||||
IO.io_wait(w, IO::WRITABLE, nil)
|
||||
end
|
||||
end
|
||||
|
||||
def test_wait_for_closed_pipe
|
||||
IO.pipe do |r,w|
|
||||
w.close
|
||||
rc = IO.io_wait(r, IO::READABLE, nil)
|
||||
assert_equal IO::READABLE, rc
|
||||
end
|
||||
end
|
||||
end
|
|
@ -1,49 +0,0 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
|
||||
class TestWaitForSingleFD < Test::Unit::TestCase
|
||||
require '-test-/wait_for_single_fd'
|
||||
|
||||
def test_wait_for_valid_fd
|
||||
IO.pipe do |r,w|
|
||||
rc = IO.wait_for_single_fd(w.fileno, RB_WAITFD_OUT, nil)
|
||||
assert_equal RB_WAITFD_OUT, rc
|
||||
end
|
||||
end
|
||||
|
||||
def test_wait_for_invalid_fd
|
||||
# Negative FDs should not cause NoMemoryError or segfault when
|
||||
# using select(). For now, match the poll() implementation
|
||||
# used on Linux, which sleeps the given amount of time given
|
||||
# when fd is negative (as documented in the Linux poll(2) manpage)
|
||||
assert_equal 0, IO.wait_for_single_fd(-999, RB_WAITFD_IN, 0)
|
||||
assert_equal 0, IO.wait_for_single_fd(-1, RB_WAITFD_OUT, 0)
|
||||
|
||||
# FreeBSD 8.2 or prior sticks this
|
||||
# http://bugs.ruby-lang.org/issues/5524
|
||||
if /freebsd([\d\.]+)/ =~ RUBY_PLATFORM
|
||||
ver = $1.to_r
|
||||
skip 'FreeBSD <= 8.2' if ver <= 8.2r
|
||||
end
|
||||
IO.pipe do |r,w|
|
||||
wfd = w.fileno
|
||||
w.close
|
||||
assert_raise(Errno::EBADF) do
|
||||
IO.wait_for_single_fd(wfd, RB_WAITFD_OUT, nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_wait_for_closed_pipe
|
||||
IO.pipe do |r,w|
|
||||
w.close
|
||||
rc = IO.wait_for_single_fd(r.fileno, RB_WAITFD_IN, nil)
|
||||
assert_equal RB_WAITFD_IN, rc
|
||||
end
|
||||
end
|
||||
|
||||
def test_wait_for_kqueue
|
||||
skip 'no kqueue' unless IO.respond_to?(:kqueue_test_wait)
|
||||
assert_equal RB_WAITFD_IN, IO.kqueue_test_wait
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue