I/O & processes
Paths, handles, sockets, run, shell and Proc::Async.
223 rules from 127 tests. 112 of those tests are confirmed on both engines: Raku++ and Rakudo 2026.11 both pass, or Raku++ gives Rakudo's answer on every probe of a family. The verdict is the test's, not each rule's. How to read a case.
handle-readsRaku++ matches Rakudo on 14 of 37 probespath-methods-by-kindRaku++ matches Rakudo on 37 of 41 probes- 1
The methods of IO::Path answer only for an IO::Path; a value of another kind has only the methods its own type has.
(1..3).add("x"),Date.new(…).parentandv1.2.basenameare X::Method::NotFound, whilev1.2.partsis the Version's own
6e-gatingRaku++ passesRakudo cannot run it- 10
From 6.e
unlinktakes one path and returns a Bool; before 6.e it returns the list of paths.unlink("/tmp/no-such-file-abc123").rakuisBool::Trueunder 6.e and["/tmp/no-such-file-abc123"]under 6.d - 33
IO::Path.stemexists only from 6.e: it drops all extensions, or the last N.under 6.e
"foo.tar.gz".IO.stemisfooand"foo.tar.gz".IO.stem(1)isfoo.tar
More from this test: Dates & times (2), Exceptions & control flow (1), Hashes & sets (3), Lists & laziness (8), Numerics (1), Classes, roles & the MOP (2), Operators (1), Everything else (2), Regexes & grammars (2), Scoping & phasers (2), Signatures & dispatch (1), Strings & Unicode (6), divergences (1).
absolute-is-idempotentRaku++ passesRakudo passesargfilesRaku++ passesRakudo passes- 1
$*ARGFILESis a handle over the concatenated content of every file in@*ARGS, or over$*INwhen there are none.$*ARGFILES.lines>>.words.classify(*[1])reads the files named on the command line - 2
$*ARGFILESis built on access, so a program that never mentions it reads no files and does not block on stdin. - 3
.lineson the captured output handle ofrun(…, :out)yields the child's output lines.run(…, :out).out.linesreturns the lines the child printed
array-op-args-getc-get-and-friendsRaku++ passesRakudo passes- 6
$fh.getcand$fh.getshare one read position, so agetafter agetccontinues after the character already read.
More from this test: Compile-time errors (1), Hashes & sets (1), Numerics (1), Classes, roles & the MOP (1), Signatures & dispatch (2).
async-listen-close-keeps-pendingRaku++ passesRakudo passes- 1
Closing an
IO::Socket::Asynclisten tap still delivers to the tap's callback the connections that were completed before the close.
async-socket-udpRaku++ passesRakudo passes- 1
IO::Socket::Async.bind-udpbinds at once, so a second bind of a taken port dies, and closing the socket frees the port for an immediate rebind even with a live tap. - 2
IO::Socket::Async.udpmakes a client whoseprint-to/write-tosend one datagram each and keep their Promise with the byte count;write-totakes a Blob only. - 3
A UDP socket's Supply emits once per datagram, decoded whole: a lone combining mark is its own emit, an empty datagram is
"", and:bingivesBuf[uint8]. - 4
On a UDP socket's Supply,
:datagramwraps each datagram with its sender and:encsets the socket's encoding. - 5
Closing a UDP
IO::Socket::Asyncends its taps withdone, andwheneveron its Supply works in areact.
async-socket-unix-pathRaku++ passesRakudo passesasync-socket-write-queuedRaku++ passesRakudo passes- 1
IO::Socket::Async'swriteandprintqueue their bytes for the event loop and return a Promise at once, which is kept once the bytes are out.
audited-language-gaps-3Raku++ passesRakudo passes- 5
A Complex given as the limit of
IO::Path.linesis taken by its value. inferred
More from this test: Hashes & sets (1), Lists & laziness (1), Native types & NativeCall (1), Strings & Unicode (1).
batch1-silent-wrong-answersRaku++ passesRakudo passes- 7
.IO.openon a path that cannot be opened fails asopen()does, instead of returning a live handle."/nope".IO.opendoes not return a usable handle - 8
slurp($p, :bin)returns the raw bytes as a Blob. - 9
The
.spurtmethod refuses an existing file under:createonly, as the sub does.
More from this test: Lists & laziness (2), Numerics (1), Everything else (2), Scoping & phasers (1).
battery-proto-new-x-stash-write-positionRaku++ passesRakudo passes- 3
A handle opened
:wwrites at its own position, not at the end of the file: after another writer rewrote the file, its next write lands over the new content, not after it.
More from this test: Modules (1), Classes, roles & the MOP (1).
battery-regressions-v5Raku++ passesRakudo passes- 2
$*SPEC ~~ IO::Specis True.$*SPEC ~~ IO::SpecisTrue
More from this test: Hashes & sets (1), Modules (2), Classes, roles & the MOP (1), Operators (1), Regexes & grammars (1), Signatures & dispatch (2).
binary-handle-refuses-text-readsRaku++ passesRakudo passes- 1
A binary handle (
open(:bin),.encoding(Nil)or.encoding("bin")) dies with X::IO::BinaryMode on.get,.lines,.words,.getc,.readchars,.comband.split..geton a:binhandle dies "Cannot do 'get' on a handle in binary mode" - 2
On a binary handle
.slurpand.readanswer bytes, and.encoding("utf8")makes it a text handle again. - 3
$*INkeeps a binary encoding setting, solines()andwords()die on it too. - 4
.readchars(-1)on a handle dies.
channel-pipe-clone-issues-144-148Raku++ passesRakudo passes- 3
.read(N)on a live process pipe returns the bytes that have arrived without waiting for the child to exit.
More from this test: Concurrency (1), Containers & assignment (1).
child-output-liveRaku++ passesRakudo cannot run itclass-begin-and-run-sinkRaku++ passesRakudo passes- 2
run(…, :out($fh))sends the child's output to the given handle.after
run |@cmd, :out($out-fh)the file holds the child's output
More from this test: Scoping & phasers (1).
closed-write-handle-registryRaku++ passesRakudo passes- 2
What was written to a
:whandle the program never closes still reaches its file at exit.
concurrent-outputRaku++ passesRakudo passes- 2
printfand.printfwrite to the current$*OUT, so rebinding$*OUTredirects them.my $*OUT = open(…); printf(…)writes to the file
conformance-io-pathRaku++ passesRakudo passes- 2
.extension(:parts(…))with an Int returns exactly that many dot-separated tail segments (empty when the name has fewer), and with a Range the largest count in the range that the name has. - 3
For
.extensiona leading dot counts as a separator.".bashrc".IO.extensionisbashrc - 4
IO::Pathhas.SPECand.CWD,IO::Spec::Unixhas.newand.dir-sep, and anIO::Spectype object gists by its short name. inferred
More from this test: Stringification (1).
conformance-missing-routinesRaku++ passesRakudo passes- 4
indir($path, &code)runs the code with the process directory changed and restores it however the code exits, an exception included.
More from this test: Stringification (1), Types & coercion (1), divergences (1).
conformance-phase2-introspectionRaku++ passesRakudo passes- 9
IO::Path.partsreturns anIO::Path::Partsobject.
More from this test: Containers & assignment (1), Exceptions & control flow (2), Hashes & sets (1), Classes, roles & the MOP (1), Scoping & phasers (1), Signatures & dispatch (2), Types & coercion (1).
contextualizer-modifiers-and-dirRaku++ passesRakudo does not pass- 2
dir()yieldsIO::Pathobjects, not strings.
More from this test: Syntax & parsing (1).
copy-move-refuse-a-directoryRaku++ passesRakudo does not passcro-install-engine-fixesRaku++ passesRakudo passes- 4
An
Encoding::Decoderdecodes in its own encoding; its default line separators take a CRLF whole, and an explicit"\n"separator leaves a CR alone.
More from this test: Concurrency (4), Lists & laziness (1), Classes, roles & the MOP (1), Regexes & grammars (1), Signatures & dispatch (7), Strings & Unicode (1), Syntax & parsing (2).
dash-path-is-standard-streamRaku++ passesRakudo passes- 1
The path
'-'is the process's standard stream in every spelling:open('-'),open('-'.IO)and'-'.IO.openare$*IN, and with:w,:xor:a(or:mode<wo>) they are$*OUT.open('-', :w)is$*OUT, not a file named- - 2
Opening
'-'with:rw,:update,:raor:rx, or with:rbeside a write mode, dies because no standard stream has that mode.open('-', :rw)diesCannot open standard stream in mode 'rw' - 3
:create,:append,:truncateand:exclusivegiven alone when opening'-'choose no mode, so the stream stays standard input. - 4
'-'.IO.lines,.words,.comb,'-'.IO.slurpandslurp('-')read standard input. - 5
Language version 6.d deprecates
open('-')and'-'.IOas names for the standard stream, but notslurp('-'), and the deprecation report names them. - 6
:binand:encgiven when opening'-'set the standard stream's mode and encoding. inferred
dir-test-without-pathRaku++ passesRakudo passes- 1
The path of sub
diris its first positional and defaults to., sodir(test => /csv$/)lists the current directory filtered by the test. - 2
diron a directory that cannot be read is anX::IO::Direrror, not an empty list. - 3
Sub
dirgives the same listing asIO::Path.dir, including the shape of its entries and the handling of a Block as:test. inferred
directory-slurp-and-linesRaku++ passesRakudo passesdist-suite-quartetRaku++ passesRakudo passes- 10
open(:nl-in("||"))sets the separator that.linessplits on.
More from this test: Dates & times (1), Exceptions & control flow (1), Classes, roles & the MOP (4), Operators (1), Everything else (1), Regexes & grammars (2), Scoping & phasers (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (3), Types & coercion (2).
distro-macosRaku++ passesRakudo passes- 1
On macOS
$*DISTROcarries whatsw_versreports:.versionis the product version as a Version,.releasethe build,.authisApple Inc., and.descthe marketing name.$*DISTRO.descisTahoe 26on macOS 26
doc-missing-methodsRaku++ passesRakudo cannot run it- 2
Proc::Async.commandis the argument list the object was created with. inferredProc::Async.new('cat', 'some', 'files').commandgists(cat some files) - 6
IO::Path::Partsis Positional as well as Associative: a subscript gives a Pair, in declaration order (volume, dirname, basename). inferredIO::Path::Parts.new('C:', '/some/dir', 'foo.txt')[2]gistsbasename => foo.txt
More from this test: Stringification (2), Types & coercion (2), divergences (1).
dynamic-handle-rebindRaku++ passesRakudo passes- 1
my $*OUT = $handlereroutessay/print/putto the handle andmy $*ERR = $handlereroutesnote, until the enclosing block ends.
eco-blockers-2026-09-14Raku++ passesRakudo passes- 1
IO::Handle.newcreates an unopened handle, and its.pathis not the handle itself. - 2
.print-nlwrites the handle's output line separator.
More from this test: Exceptions & control flow (1), Operators (2), Signatures & dispatch (1), Stringification (1), Syntax & parsing (2).
ecosweep-1000-batchRaku++ passesRakudo cannot run it- 1
run(:merge)andshell(:merge)capture the child's standard output and standard error together in.out.
More from this test: Modules (1).
ecosweep-2026-09Raku++ passesRakudo passes- 10
The enum
SeekTypeand the dynamic variable$*DEFAULT-READ-ELEMSexist. - 11
The
.nl-outof anIO::Handlesubclass instance is writable per instance.
More from this test: Modules (3), Classes, roles & the MOP (1), Operators (1), Scoping & phasers (2), Signatures & dispatch (1), Types & coercion (1).
ecosweep-900-batchRaku++ passesRakudo passes- 3
An IO::Handle's
.chompis assignable ($fh.chomp = False), itsnl-incan be set explicitly and defaults to a pair of separators, and.seekmoves the read position. inferred
More from this test: Containers & assignment (1), Lists & laziness (4), Numerics (1), Operators (2), Regexes & grammars (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (1).
env-delete-reaches-childrenRaku++ passesRakudo passes- 1
%*ENV<X>:deletetakes X out of the environment that a child started byrunafterwards inherits.
error-messages-rakudo-settledRaku++ passesRakudo passes- 5
IO::Socket::Async.listenon a port already in use fails with a message that says so and gives the address. inferred"address already in use (address: 127.0.0.1:$port)"
More from this test: Exceptions & control flow (2), Hashes & sets (1), divergences (1).
exe-args-in-a-moduleRaku++ passesRakudo passes- 2
@*ARGSis an Array, not a List.
file-write-reaches-disk-at-onceRaku++ passesRakudo passes- 1
A write to a file handle opened
:wreaches the file at once, so another process sees it before.close.
fresh100-parse-cluster-and-hostnameRaku++ passesRakudo passes- 1
Kernel.hostname, called on the type object, answers the machine's host name.
More from this test: Signatures & dispatch (1), Syntax & parsing (4).
grand-review-c1-interpRaku++ passesRakudo passes- 1
A
Procthat is the return value of a routine or of adoblock is not sunk there, so a failedrundoes not throwX::Proc::Unsuccessfuluntil the caller sinks it.sub run-it { run |@cmd }; my $p = run-it; $p.exitcodeworksAlso held by
main-return-value-is-sunk.
More from this test: Containers & assignment (1), Exceptions & control flow (3), Numerics (7), Operators (4), Scoping & phasers (4), Signatures & dispatch (3), Stringification (1), Strings & Unicode (1).
grand-review-c2-methodsRaku++ passesRakudo passes- 10
IO::Path.createdis the file's birth time, which stays put when the file is appended to, and is not another name for.modified. - 11
The IO::Path mutators report an error as a Failure, not a quiet False:
spurtinto a missing directory,rmdirorchmodof a missing path, andspurt(:createonly)on an existing file.$f.spurt("b", :createonly)on an existing file fails and leaves the file alone - 12
A plain Str has no
unlink,spurtormkdirmethod.$f.Str.unlinkdies and the file is still there - 13
openof a missing file returns a Failure rather than throwing. - 14
$fh.putwrites its argument and a newline to that handle.after
$fh.put("line")the file holdsline\n - 15
$*KERNEL.versionis a Version and$*KERNEL.archnamenames the machine's architecture.
More from this test: Hashes & sets (1), Lists & laziness (1), Numerics (4), Everything else (1), Strings & Unicode (3).
grand-review-c3-procsRaku++ passesRakudo passes- 1
A child killed by a signal reports
.exitcode0 and.signalas the signal number, is false in boolean context, and throws when sunk.a SIGKILLed child has
.exitcode0 and.signal9 - 2
Proc.pidis the child's real process id. - 3
With
Proc::Async.new(:w, …),.printfeeds the child's standard input and its Promise is kept with the byte count;.printor.close-stdinwithout:wdies.Proc::Async.new('cat').print('x')dies - 4
Proc::Async.killsends SIGHUP by default, and the awaited Proc reports it in.signalwith.exitcode0. - 5
IO::Socket::INET.newthrows when the connection is refused or the:familyis unknown.IO::Socket::INET.new(:host<127.0.0.1>, :port(1))dies
More from this test: Numerics (1).
handle-closed-getc-astral-proc-signalRaku++ passesRakudo passes- 1
.getchands out one whole character: an astral character is not split into surrogates and a combining mark stays on its base..getcon U+1F600 does not return its high surrogate 55357 - 2
A closed handle refuses to read or write with
X::IO::Closed(.get,.lines,.slurp,.getc,.print). - 3
A Proc whose child was killed by a signal has exit code 0, that signal in
.signal, and is not a success.
handle-flush-and-main-usageRaku++ passesRakudo passes- 1
IO::Handle.flushwrites what has been buffered to the file at once, and later writes and the close append after it.
More from this test: Everything else (5).
handle-getc-readchars-graphemesRaku++ passesRakudo passes- 1
A handle's
.getcand.readcharshand out graphemes, and a CR LF reads as"\n".over
"q\x[301]xy\r\nz"the reads give"q\x[301]","xy","\n","z" - 2
$*IN.getcwaits for the character after the one it hands out, since it may be a combining mark, and a.getor.linesthat follows still sees that next character.
handle-read-get-one-positionRaku++ passesRakudo passes- 1
A file handle has one position, shared by
.readand the text readers (.get,.lines,.getc,.readchars,.slurp)..getafter.read(3)does not answer the first line whole, and.readafter.getdoes not start at the top of the file - 2
A line that ended in CR LF counts both bytes for a following
.readand for.tell.
handle-spurt-closeRaku++ passesRakudo passes- 1
IO::Handle.spurt($content, :close)writes the content and closes the handle, so the file can be read back at once.after
$fh.spurt($text, :close), slurping the path returns$text
handle-write-binds-a-blobRaku++ passesRakudo passesio-cwd-captureRaku++ passesRakudo passesio-native-descriptorRaku++ passesRakudo passes- 1
IO::Handle.native-descriptoranswers the OS file descriptor as an Int, exactly the real descriptors for the standard handles, and never Nil.$*IN.native-descriptoris an Int
More from this test: divergences (1).
io-path-chownRaku++ passesRakudo passes- 1
IO::Path.chownanswers True and keeps the file's own id for auidorgidleft out, a refusal is a Failure carrying X::IO::Chown, and thechownsub answers the paths it changed.$file.chown(uid => 0, gid => 0)
io-path-cwd-operationsRaku++ passesRakudo passes- 1
File operations on an
IO::Pathcreated with:CWD(.e,.lines,openand the like) resolve a relative path against the path's own:CWD, not the process's current directory.IO::Path.new($rel, :CWD($dir)).linesreads the file under$dir
io-path-extension-and-flavorsRaku++ passesRakudo passes- 1
.extension($new, :parts, :joiner)replaces the extension; the joiner defaults to the empty string for an empty replacement and to.otherwise, and nothing is replaced when no extension of the requested size exists..extension('')removes the dot too, while:joiner<_>leaves a joiner behind - 2
.cleanupsqueezes repeated separators and drops.segments but keeps.., and returns anIO::Path. - 3
.addand.childtake several parts, or one list, and append each as a path segment. - 4
A flavored path such as
IO::Path::Win32stringifies as its path, and its.basename/.partsfollow that flavor'sIO::Spec, so a UNC volume comes out whole. - 5
IO::Path.new(…, :CWD(…))remembers the directory it was given.
io-path-methods-undefinedRaku++ passesRakudo passesio-path-subclass-boxedRaku++ passesRakudo passes- 1
An instance of a user class deriving from
IO::Pathanswers.e,.slurp,.linesand.Stras the built-in does, and keeps doing so with a role mixed in bybut.class IO::Path::AutoDecompress is IO::Path { … }
More from this test: Classes, roles & the MOP (1).
io-path-symlink-linkRaku++ passesRakudo does not pass- 1
IO::Path.symlink($name)andIO::Path.link($name)create a link named by the argument that points at the invocant, returning True on success.$target.IO.symlink($name) - 2
IO::Path.symlinkstores a relative target as an absolute path in the link. - 3
A failing
.symlinkor.linkis an X::IO::Symlink or X::IO::Link, and Str has neither method.
io-path-user-group-modeRaku++ passesRakudo passesio-path-watch-directoryRaku++ passesRakudo passesiospec-parts-and-numeric-identityRaku++ passesRakudo passes- 1
IO::Spec'scatdirandcatfiletake*@parts, so one list argument spreads into its parts. - 2
IO::Spec'ssplitdirandsplitpathreturn a List, not an Array. - 3
IO::Spec::*.splitreturns anIO::Path::Parts. - 4
In
IO::Spec's.split, a trailing.or..joins the dirname only once a separator has matched.a bare
.splits as("", "", ".")
More from this test: Lists & laziness (1), Numerics (1), Strings & Unicode (1), Types & coercion (1).
iospec-versioning-enums-filetestRaku++ passesRakudo passes- 1
IO::Spec::Unix.pathreturns aSeq, also when PATH is empty. - 2
IO::Spec::Unix.split('')gives an empty dirname, not.. - 3
IO::Spec::Unix.splitpathhonours:nofile. - 6
A junction of filetest adverbs smartmatches a path by applying each filetest, as in
$path.IO ~~ :d & :x.
More from this test: Classes, roles & the MOP (1), Types & coercion (1).
is-deeply-strict-and-anton-batchRaku++ passesRakudo passes- 16
.tellon a handle answers the byte position: the bytes written on a write handle, the bytes read on a read handle. - 17
warnwrites through$*ERR, asnotedoes. - 18
open(:mode<wo>, :create)creates an empty file.
More from this test: Hashes & sets (1), Lists & laziness (1), Classes, roles & the MOP (3), Operators (3), Everything else (1), Regexes & grammars (2), Signatures & dispatch (1), Syntax & parsing (2).
issue34-io-path-relativeRaku++ passesRakudo passes- 1
IO::Path.relative($base)is purely lexical: it climbs out of the base with..for every component the two do not share, then descends into the path.$cwd.add($path.relative($cwd))round-trips a path outside$cwd
issue35-zef-after-installRaku++ passesRakudo cannot run it- 2
&*EXITis declared and isexituntil it is rebound.&*EXIT(1)exits
More from this test: Containers & assignment (1), Hashes & sets (1), Lists & laziness (1), Modules (1), Types & coercion (1).
listop-terms-and-empty-container-failuresRaku++ passesRakudo passes- 6
In
open :w, $paththe path is the first positional argument, even when an adverb precedes it.
More from this test: Hashes & sets (1), Lists & laziness (4), Syntax & parsing (2).
logical-newlinesRaku++ passesRakudo passes- 2
A file handle's
.linessplits only on itsnl-in, by default["\n", "\r\n"].
More from this test: Concurrency (1), Strings & Unicode (1).
main-return-value-is-sunkRaku++ passesRakudo passes- 1
The return value of
sub MAINis sunk, so a failed Proc returned from MAIN throwsX::Proc::Unsuccessfuland the program exits non-zero.a program whose MAIN ends in a failing
run @cmdexits non-zero
mkdir-failure-is-a-failureRaku++ passesRakudo cannot run it- 1
mkdir, as a sub and as a method, returns the IO::Path on success, creating parents as needed, and an already-existing directory is success. - 2
A failed
mkdirreturns a Failure wrapping X::IO::Mkdir with the message "Failed to create directory '<path>' with mode '0oNNN': ...", false when boolified and thrown when sunk.mkdir $rootin sink context dies when the path is shadowed by a regular file - 3
mkdirtakes the mode positionally as a sub, and as$modeor:modeon the method. - 4
IO::Path.modereturns an IntStr.
modinfo-ecosystem-clusterRaku++ passesRakudo passes- 17
IO::Path.dir(:test)returns only the entries whose names match the given test.$tmp.dir(test => /'.raku' $/)returnsa.rakuand notb.txt
More from this test: Hashes & sets (1), Lists & laziness (1), Operators (1), Regexes & grammars (3), Scoping & phasers (2), Signatures & dispatch (3), Syntax & parsing (7), Types & coercion (1).
module-compat-clusterRaku++ passesRakudo passes- 11
The parent of the path
.is...'.'.IO.parent.Stris..
More from this test: Classes, roles & the MOP (4), Operators (1), Scoping & phasers (3), Signatures & dispatch (2).
nqp-nextfiledir-end-of-dirRaku++ passesRakudo passes- 1
nqp::nextfiledirnever hands out.and..and answers the empty string at the end of the directory, so its result fits a nativestr.
open-failure-is-loudRaku++ passesRakudo does not pass- 1
open($p, :w)on a path that cannot be opened, such as one in a missing directory, returns a Failure instead of a usable handle.open("/gone/f", :w)is a Failure - 4
Opening a directory with
openfails withX::IO::Directory. - 5
spurtto a path that cannot be written is a Failure, not a quiet False.
More from this test: Exceptions & control flow (1), divergences (1).
open-modes-bind-end-shiftRaku++ passesRakudo cannot run it- 1
openhonours the:rw,:exclusiveand:updatemodes.open($path, :rw, :exclusive)creates a fresh file instead of failing as nonexistent
More from this test: Containers & assignment (1), Scoping & phasers (1), Syntax & parsing (1).
open-undefined-encoding-is-defaultRaku++ passesRakudo passesout-bufferRaku++ passesRakudo passes- 1
IO::Handle.out-buffersets the output buffer size:$*OUT.out-buffer = 0oropen $f, :w, :!out-buffermakes every write reach the file or pipe immediately.
path-methods-need-a-pathRaku++ passesRakudo passes- 1
.absolute,.cleanupand.canonpathexist on IO::Path only, so calling one on a non-path value is an error.Int.^can('absolute')is false, and7.absolutedoes not answer a path
path-methods-on-any-valueRaku++ passesRakudo passes- 1
IO::Path methods (
add,child,sibling,parent,basename,extension,open…) called on a defined value that is neither a Str nor an IO::Path throwX::Method::NotFound.42.add('x')throws X::Method::NotFoundAlso held by
path-methods.
More from this test: Classes, roles & the MOP (1), divergences (1).
path-methods-on-type-objectsRaku++ passesRakudo passes- 1
IO::Path methods called on a type object other than
IO::PaththrowX::Method::NotFound.Any.add('x')andInt.parentthrow X::Method::NotFoundAlso held by
path-methods. - 2
IO::Path methods called on
Nilanswer Nil. - 3
IO::Path instance methods called on the
IO::Pathtype object throwX::Parameter::InvalidConcreteness.
pdf-family-2026-09Raku++ passesRakudo passes- 50
seekandtellon a:binhandle work in byte offsets.
More from this test: Containers & assignment (8), Exceptions & control flow (1), Lists & laziness (1), Modules (1), Numerics (1), Classes, roles & the MOP (14), Operators (1), Regexes & grammars (3), Scoping & phasers (4), Signatures & dispatch (9), Syntax & parsing (11), Types & coercion (3).
proc-async-in-supply-blockRaku++ passesRakudo passes- 3
Proc::Async.start(:ENV(…))gives the child that environment.
More from this test: Concurrency (2).
proc-in-streamsRaku++ passesRakudo passes- 1
run(cmd, :in, :out, :err)captures the child's standard error in.erras well as its standard output in.out. - 2
run(cmd, :in)without:outor:errlets the child write to the parent's own streams. - 3
Closing
$p.inwithout writing anything still runs the child, which sees end of input, and.outthen holds its output.
proc-new-runs-laterRaku++ passesRakudo passes- 1
Proc.new(:out)builds a Proc before anything runs, choosing what the eventual run captures, and.shellor.spawnthen runs a command on it.
proc-pipe-close-reports-a-failed-childRaku++ passesRakudo passesproc-sink-throws-inside-tryRaku++ passesRakudo passes- 1
.sinkon a Proc that exited unsuccessfully throwsX::Proc::Unsuccessfulat the call, so atryaround the call catches it.try $p.sinkcatches the exception
proc-stream-tap-fidelityRaku++ passesRakudo passes- 1
A plain
Proc::Async.stdouttap emits decodedStrchunks;.stdout(:bin)is the form that emits bytes. - 2
.lines(:!chomp)on aProc::Asyncoutput supply keeps the trailing newline of each line.
More from this test: Concurrency (3).
prompt-takes-no-namedsRaku++ passesRakudo cannot run it- 1
prompthas exactly the signatures()and($msg), so any named argument is an error.prompt(:hidden)is a caller error
rakuglaze-round-6Raku++ passesRakudo passes- 3
A Str has no
.CWDmethod.
More from this test: Concurrency (1), Exceptions & control flow (1), Hashes & sets (2), Lists & laziness (2), Classes, roles & the MOP (1), Regexes & grammars (1), Scoping & phasers (1), Syntax & parsing (2).
regex-closure-and-io-dotRaku++ passesRakudo passes- 3
A bare
.parent directory contributes nothing to a path built under it. inferred - 4
.dir's default:testis what excludes.and..; an explicit:testreplaces it.
More from this test: Regexes & grammars (2), Types & coercion (1).
resolve-completely-failsRaku++ passesRakudo passes- 1
IO::Path.resolve(:completely)answers a Failure when a component of the path does not exist.
roast-3log-batch1Raku++ passesRakudo passes- 1
Text reads from a Proc's captured pipes fold CRLF into a newline, as file reads do.
- 2
The pipes of
run(:bin)give Bufs. - 9
'-'.IOstands for standard input.
More from this test: Dates & times (1), Exceptions & control flow (2), Hashes & sets (1), Lists & laziness (2).
roast-sweep-runtimeRaku++ passesRakudo cannot run it- 49
A file handle nothing has read from is not at
.eof, even over an empty file. inferred - 50
After a
seekinto the middle of a line, the next line read is the rest of that line. inferred - 57
The root path's
.basenameis the root, and a userIO::Specclass in$*SPECbecomes the SPEC of paths made under it. inferred
More from this test: Compile-time errors (4), Concurrency (2), Containers & assignment (2), Exceptions & control flow (2), Hashes & sets (4), Lists & laziness (5), Modules (2), Classes, roles & the MOP (8), Operators (4), Everything else (1), Regexes & grammars (1), Scoping & phasers (14), Stringification (1), Strings & Unicode (1), Types & coercion (3).
routine-scoped-match-and-when-lastRaku++ passesRakudo passes- 3
.slurpis a method of IO::Path, not of every Str.
More from this test: Exceptions & control flow (1), Classes, roles & the MOP (1), Regexes & grammars (1).
run-adverbs-keep-undo-rule-captureRaku++ passesRakudo passes- 1
run(:!out, :!err)discards those streams, an unspecified stream is inherited from the parent, and:out/:errcapture.
More from this test: Modules (1), Regexes & grammars (1), Scoping & phasers (1).
run-child-process-groupRaku++ passesRakudo passes- 1
A child started by
runstays in the parent's process group, so it can read from and configure the terminal.run 'stty', '-echo'completes
run-child-sigpipe-defaultRaku++ passesRakudo passes- 1
A child process started by
run,shell,qxorProc::Asyncstarts with SIGPIPE at its default disposition and an empty signal mask, so a writer whose reader went away is killed by SIGPIPE.shell 'yes | head -n 1'prints noBroken pipeon stderr; ayesfeedingheaddies of signal 13
run-env-adverb-shapesRaku++ passesRakudo passes- 1
runandshelltake.hashof whatever:envholds, so a Hash, a Pair, a list of Pairs, and a hash followed by Pairs are all accepted. - 2
:envreplaces the child's environment::env(PROBE => 'M')gives the child an environment holding only that variable.run(…, :env(PROBE => 'M'))runs the child with one environment variable
run-env-cwdRaku++ passesRakudo passes- 1
run's:envreplaces the child's environment and:cwdsets its working directory, also when:inis used.
run-in-file-handleRaku++ passesRakudo passes- 1
runorshellwith:in($handle)gives the child the file handle's own descriptor as its standard input.test -f /dev/stdinholds in the child
run-in-non-handle-closes-stdinRaku++ passesRakudo passes- 1
For
run,:in(True)is a pipe the program writes,:in('-')inherits the parent's stdin, and any other value that is not a handle — False, a Str, a number, Any, Nil — closes the child's stdin, so a read there meets EOF at once.run(:in("x"), "cat", :out)does not deadlock: cat meets EOF - 2
shellwith:ingives the child a stdin pipe that.in.printwrites to. inferred
run-in-with-out-sinkRaku++ passesRakudo passes- 1
A handle given to
:outor:errofrunreceives the child's stream, also when a bare:inis given and the child starts only once its stdin is closed.run 'cat', :in, :out($fh)writes the child's output into$fh
run-live-pipesRaku++ passesRakudo passes- 1
runwith:in/:out/:errreturns while the child runs on live pipes:.out.getand.out.linesread output as it arrives, and.in.sayreaches the running child, so a write-read-write conversation works.
run-main-protocolRaku++ passesRakudo passes- 1
RUN-MAIN(&main, $mainline)drives the command-line protocol:@*ARGSpass throughARGS-TO-CAPTURE,&mainis dispatched, a failed dispatch callsGENERATE-USAGE(or the legacyUSAGE), and the process exits via&*EXIT. - 2
A user sub named
ARGS-TO-CAPTUREorGENERATE-USAGEreplaces the built-in step,&*ARGS-TO-CAPTURE/&*GENERATE-USAGEname the original while it runs, andMAIN_HELPERis never called.
run-positional-pair-argumentRaku++ passesRakudo passes- 1
A Pair passed to
runas a positional is an argument, its Str the key, a tab and the value; a named argument, or a hash slipped in as named ones, is still an adverb.the positional Pair's argument is "a\t1"
run-refuses-unknown-namedRaku++ passesRakudo passes- 1
runandshellrefuse a named argument they do not take, while Proc::Async's.startstays lenient.run(…, :ENV(%env))is refused
More from this test: divergences (1).
run-stderr-inheritRaku++ passesRakudo passes- 1
runandshellwithout an:erradverb let the child inherit the parent's stderr, while:!errdiscards it.
shell-cwd-adverbRaku++ passesRakudo passesshell-out-to-a-handleRaku++ passesRakudo passes- 1
shell(CMD, :out($fh))sends the child's output to the handle's file, and the bytes are in the file when the child exits, even with the handle still open.
slurp-leaves-handle-at-endRaku++ passesRakudo passessocket-host-carries-portRaku++ passesRakudo passessocket-inet-ipv6Raku++ passesRakudo passes- 1
IO::Socket::INETworks over IPv6 when given:family(PF_INET6).
socket-read-and-stringyRaku++ passesRakudo passes- 2
A listening
IO::Socket::INETbinds by hostname as well as by address.IO::Socket::INET.new(:listen, :localhost<localhost>, :localport(0))is defined - 3
On a socket bound with
:localport(0),.localportanswers the port the OS assigned, and.localhostanswers the name as given.$srv.localport > 0and$srv.localhostislocalhost - 4
.read($n)on a socket returns exactly$nbytes, blocking across packets until it has them, while.recv($n)returns at most$n.$cl.read(10)returns 10 bytes when the peer sends 4 and then 6
More from this test: Stringification (1), Syntax & parsing (1).
socket-recv-counts-charactersRaku++ passesRakudo passes- 1
IO::Socket::INET's text.recv($n)hands out up to$nwhole characters (graphemes), not bytes: from its buffer if it holds them, else after one more read, else all it has..recv(3)of"Å\r\nö…"keeps the CR LF together - 2
On an
IO::Socket::INET,.recvand.readcontinue from what an earlier.getread ahead into the buffer.
socket-role-and-recv-infRaku++ passesRakudo passessparrow6-blockersRaku++ passesRakudo passes- 1
IO::Path.absolutereturns a Str, as.relativedoes, while.cleanupreturns an IO::Path."x".IO.absolute('/base')is the Str/base/x
More from this test: Concurrency (2), Syntax & parsing (1).
stdin-is-one-handleRaku++ passesRakudo passes- 1
Standard input is one handle however
$*INis reached: a copy stays===to$*INafter reads, and$*IN.closecloses it for every later$*IN, a copy made before,$*ARGFILESwith no files named and another thread's$*IN.after
$*IN.close,$*IN.openedis False - 2
$*IN.lines(:close)and$*IN.words(:close)close standard input. - 3
A closed standard input refuses
get,linesandwords, as methods and as subs, with X::IO::Closed, and its.eofis True. - 4
open('-')opens a closed standard input again.
stdin-lines-streamsRaku++ passesRakudo passes- 1
$*IN.linesover a pipe hands out each line as it arrives, without waiting for the writer to close.
stdin-read-bytes-and-eofRaku++ passesRakudo passesstdin-read-returns-what-arrivedRaku++ passesRakudo passes- 1
.read(N)on stdin, or on a handle opened on a FIFO or terminal, returns what has arrived once at least one byte has, without waiting for N bytes or the end.
superscript-call-but-bool-redo-copy-and-friendsRaku++ passesRakudo passes- 6
The sub form
spurt($fh, …)on an open handle is the handle'sspurtmethod and does not take the handle for a path.
More from this test: Exceptions & control flow (1), Lists & laziness (1), Signatures & dispatch (2), Stringification (1), Syntax & parsing (1), Types & coercion (1).
supply-await-list-read-chdir-pathRaku++ passesRakudo passes- 3
.read(n)on a handle hands out n bytes, raw, so input that is not UTF-8 survives. - 4
A relative
IO::Pathmade before achdirstill names the file it named, because it keeps the$*CWDit was made under.
More from this test: Concurrency (3).
symlink-and-x-ioRaku++ passesRakudo passes- 1
symlink,linkandreadlinkare available as subs. - 3
The
symlinksub stores a relative target as an absolute path, so the link does not dangle when its directory differs from the current one.symlink("t/a/d", "t/b/link")makes a working link
More from this test: Exceptions & control flow (2).
text-slurp-crlfRaku++ passesRakudo passes- 1
A text-mode file read translates CRLF to LF, the handle's default
:nl-inbeing["\n", "\r\n"], while a:binread keeps every CR.
tmpdir-existsRaku++ passesRakudo passes- 1
$*TMPDIRis a directory that exists, on every platform.
worker-lock-wait-exits-promptlyRaku++ passesRakudo passes- 2
A
startblock or the mainline waiting in a blocking.lockon a file handle gets the lock once its holder releases it.
zef-ecosystem-clusterRaku++ passesRakudo passes- 5
IO::Path.basenameignores trailing slashes."http://x/".IO.basenameisx - 6
IO::Path.relative($base)gives the path relative to$basewhen$baseis a prefix of it. inferred
More from this test: Regexes & grammars (3), Scoping & phasers (1), Types & coercion (1).