Peter Kokot
d679f02295
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:33:09 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Gabriel Caruso
c93aba042f
Give a reason why the test was skipped
...
This will help us debug why a test was skipped in GCOV
(http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip ), and maybe
put them to run again
2018-07-22 16:41:41 -03:00
Tim Bazuin
033907b9a5
Add support for rl_completion_suppress_append and rl_completion_append_character
...
These options are only available with libreadline.
2018-03-25 18:21:35 +02:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Ricardo Melo
8fb5bac653
Test that readline respects open_basedir
2017-08-25 00:12:36 +01:00
Anatol Belski
9ab0db0813
extend skipif
2016-11-18 12:00:02 +01:00
Xinchen Hui
ee2d662434
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed bug #72538 (readline_redisplay crashes php)
2016-07-03 23:57:02 +08:00
Xinchen Hui
612aff3a8a
Fixed bug #72538 (readline_redisplay crashes php)
2016-07-03 23:56:27 +08:00
Xinchen Hui
14f105ebba
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed test ext/readline/tests/readline_read_history_error_001.phpt
2016-03-02 12:31:30 +08:00
Xinchen Hui
3fb566f475
Fixed test ext/readline/tests/readline_read_history_error_001.phpt
...
This only pass with libedit
2016-03-02 12:29:15 +08:00
Anatol Belski
e1c3df3e88
fork test
2016-01-15 13:10:09 +01:00
Anatol Belski
d7a1b243da
fork test
2016-01-15 13:02:36 +01:00
Xinchen Hui
a620b79040
Fixed bug #69054 (Null dereference in readline_(read|write)_history() without parameters)
2015-02-15 22:54:05 +08:00
Pedro MFA Evangelista
2c6ecbbea1
Add my information to this test
2014-09-28 23:25:47 -03:00
Pedro MFA Evangelista
8cd23d49db
Add a test for the exception cases of readline_read_history
2014-09-28 23:25:47 -03:00
Stanislav Malyshev
3f19697c0c
fix test
2014-01-26 14:31:20 -08:00
Remi Collet
e3192473b5
Skip readline tests which fail with libedit
...
Add specific libedit test (output slightly differs)
2014-01-20 09:38:34 +01:00
Stanislav Malyshev
248414f132
readline can output control codes
2013-06-17 00:15:31 -07:00
Hartmel
272c5edea4
Bug #55694 : Update readline test to support attempted_completion_over variable
2013-06-16 23:44:44 -07:00
Felipe Pena
eb3eea2669
- Fixed tests for when running using libedit
2009-12-13 16:53:24 +00:00
Felipe Pena
241c414422
- MFH: Fixed test
2009-01-07 23:04:52 +00:00
Felipe Pena
01dec97a90
- Missing SKIPIF :(
2008-11-21 22:55:58 +00:00
Felipe Pena
a7dc862b6d
- New tests
2008-11-21 21:44:11 +00:00
Felipe Pena
bf90950756
- Fix test
2008-11-21 21:03:35 +00:00
Felipe Pena
8d85566ebe
- New tests
2008-11-21 21:00:47 +00:00
Felipe Pena
da067890db
- MFH: Fixed memory leaks in readline_completion_function()
2008-11-20 22:25:37 +00:00