view t/08-performance/05-processkeys.t @ 0:c341f82e7ad7 default tip

Rakudo branch in cr.ie.u-ryukyu.ac.jp
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 26 Dec 2019 16:50:27 +0900
parents
children
line wrap: on
line source

use Test;
plan 1;

# output of "perl6 -e 'use Test; .say for PROCESS::.keys.sort.map: { qq:!c/  Q{$_},/ }'"
my %allowed = (
  Q{$AWAITER},
  Q{$CWD},
  Q{$CORE-SETTING-REV},
  Q{$ERR},
  Q{$IN},
  Q{$OUT},
  Q{$PERL},
  Q{$PID},
  Q{$RAKUDO_MODULE_DEBUG},
  Q{$REPO},
  Q{$SCHEDULER},
  Q{$SPEC},
  Q{%ENV},
  Q{&chdir},
).map: { $_ => 1 };

my @unknown;
@unknown.push($_) unless %allowed{$_}:exists for PROCESS::.keys;
diag "Found {+@unknown} unexpected entries: { @unknown.sort }" unless
ok @unknown == 0, "No unexpected entries in PROCESS::";