summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/it_error.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/it_error.t b/test/it_error.t
index 46f04d3..4d9e2ad 100755
--- a/test/it_error.t
+++ b/test/it_error.t
@@ -2,11 +2,12 @@
<?php
# TESTFLAGS SLOW
+$opts = it::getopt("Usage: it_error.t [TESTNUM]");
it::$error_context = fn() => ['blockmail' => 0, 'to' => "mueller", 'toscreen' => 1];
$GLOBALS['debug_verboseerrors'] = 1;
-if ($argv[1])
- foo($argv[1]);
+if ($opts['args'][0])
+ foo($opts['args'][0]);
else {
foreach (range(1, 12) as $testnum) {
$errlines = explode("\n", it::exec('{cmd} {testnum} |& cat', ['cmd' => $argv[0], 'testnum' => $testnum]));