Skip to content

Conversation

@divinity76
Copy link
Contributor

this test took 2 seconds to execute on a 5GHz AMD Ryzen 9 7950x (one of AMD's fastest single-thread-performance CPUs), it should have SKIP_SLOW_TESTS

this test took 2 seconds to execute on a 5GHz AMD Ryzen 9 7950x (one of AMD's fastest single-thread-performance CPUs), it should have SKIP_SLOW_TESTS
proc_open() with output socketpairs
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("SKIP_SLOW_TESTS");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message must start with skip ... or it won't actually be skipped.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, actually it will, likely by accident. The regex is /^skip\s*(.+)/i instead of /^skip\s+(.+)/i. Anyway, please stick to the existing convention.

Copy link
Contributor Author

@divinity76 divinity76 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the existing convention

you sure there is one?

sapi/fpm/tests/reload-uses-sigkill-as-last-measure.phpt:

if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');

tests/basic/timeout_variation_9.phpt:

if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");

ext/phar/tests/bug13727.phpt:

<?php if (getenv('SKIP_SLOW_TESTS')) die('skip'); ?>

ext/sockets/tests/socket_shutdown-win32.phpt:

if (getenv("SKIP_SLOW_TESTS")) {
    die('skip: Slow test');
}

ext/curl/tests/bug64267.phpt:

if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");

ext/soap/tests/bug69137.phpt:

if (getenv("SKIP_ONLINE_TESTS")) { die("skip test requiring internet connection"); }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we're inconsistent. That doesn't mean we need yet another variation 😉

@iluuu1994 iluuu1994 merged commit 50c51d0 into php:master Jan 17, 2024
@iluuu1994
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants