Skip to content

missing SKIP_SLOW_TESTS #13156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2024
Merged

missing SKIP_SLOW_TESTS #13156

merged 2 commits into from
Jan 17, 2024

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
@@ -1,5 +1,9 @@
--TEST--
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