Selkie.git | t/ | 108-snapshot-platform.rakutest
use Test;
use lib "lib";
use Selkie::Test::SnapshotPlatform :test;
plan 1;
subtest "snapshot I/O dispatch selects one owning runtime" => {
plan 2;
is-deeply snapshot-io-api-spec(False), Map.new(
library => Str,
fopen => "fopen",
fileno => "fileno",
dup => "dup",
dup2 => "dup2",
null-path => "/dev/null",
), "POSIX selects the process library and its null device";
is-deeply snapshot-io-api-spec(True), Map.new(
library => "ucrtbase",
fopen => "fopen",
null-path => "NUL",
), "Windows only obtains notcurses' NUL FILE* from the UCRT";
};