File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ FPM: cpu affinity test
3
+ --SKIPIF--
4
+ <?php include "skipif.inc " ;
5
+
6
+ if (!str_contains (PHP_OS , 'Linux ' )) {
7
+ die ('skipped supported only on Linux ' );
8
+ }
9
+ ?>
10
+ --FILE--
11
+ <?php
12
+
13
+ require_once "tester.inc " ;
14
+
15
+ $ cfg = <<<EOT
16
+ [global]
17
+ error_log = {{FILE:LOG}}
18
+ pid = {{FILE:PID}}
19
+ [unconfined]
20
+ listen = {{ADDR:IPv4}}
21
+ pm = dynamic
22
+ pm.max_children = 1
23
+ pm.start_servers = 1
24
+ pm.min_spare_servers = 1
25
+ pm.max_spare_servers = 1
26
+ process.cpumask = 1
27
+ EOT ;
28
+
29
+ $ tester = new FPM \Tester ($ cfg );
30
+ $ tester ->start ();
31
+ $ tester ->expectLogStartNotices ();
32
+ $ tester ->terminate ();
33
+ $ tester ->expectLogTerminatingNotices ();
34
+ $ tester ->close ();
35
+
36
+ ?>
37
+ Done
38
+ --EXPECT--
39
+ Done
40
+ --CLEAN--
41
+ <?php
42
+ require_once "tester.inc " ;
43
+ FPM \Tester::clean ();
44
+ ?>
You can’t perform that action at this time.
0 commit comments