diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 08:29:32 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 08:32:55 +0200 |
| commit | 06f6eeee3a7aaea881d7b399454762f65c8cec87 (patch) | |
| tree | 5fcdf9a6283d61069c1226c4876c99af0da2ab83 /src/suites/preprocess.py | |
| parent | 058491e35baa8bc73e14b48ceb765a3fe3c07e1f (diff) | |
| download | minishell_test-06f6eeee3a7aaea881d7b399454762f65c8cec87.tar.gz minishell_test-06f6eeee3a7aaea881d7b399454762f65c8cec87.tar.bz2 minishell_test-06f6eeee3a7aaea881d7b399454762f65c8cec87.zip | |
Added Linux exit status and output conversion to macos
Diffstat (limited to 'src/suites/preprocess.py')
| -rw-r--r-- | src/suites/preprocess.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py index fde8cc5..506cb32 100644 --- a/src/suites/preprocess.py +++ b/src/suites/preprocess.py @@ -6,7 +6,7 @@ # By: juligonz <juligonz@student.42.fr> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:25:00 by charles #+# #+# # -# Updated: 2020/10/06 16:31:11 by cacharle ### ########.fr # +# Updated: 2020/10/07 08:27:57 by charles ### ########.fr # # # # **************************************************************************** # @@ -55,18 +55,18 @@ def suite_quote(test): test("echo '\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"'") test('echo "\'"') test('echo "\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'"') - test("echo '", hook=hooks.error_line0) - test('echo "', hook=hooks.error_line0) - test("echo '''", hook=hooks.error_line0) - test('echo """', hook=hooks.error_line0) - test("echo '''''''''''''''''''''''''''''''''''''''''''", hook=hooks.error_line0) - test('echo """""""""""""""""""""""""""""""""""""""""""', hook=hooks.error_line0) + test("echo '", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo "', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test("echo '''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo """', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test("echo '''''''''''''''''''''''''''''''''''''''''''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo """""""""""""""""""""""""""""""""""""""""""', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test("echo 'AH\\'") - test('echo "AH\\"', hook=hooks.error_line0) + test('echo "AH\\"', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test('echo "AH\\""') - test("echo '\\''", hook=hooks.error_line0) + test("echo '\\''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test('echo "\\""') - test('echo "\\\\""', hook=hooks.error_line0) + test('echo "\\\\""', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) @suite() @@ -217,7 +217,7 @@ def suite_escape(test): test(r"/bin/echo ' \$? '") test(r"/bin/echo ' \\ '") test(r"/bin/echo ' \\\ '") - test("echo \\") # noting on linux + test("echo \\", hook=hooks.delete_escape) test("echo \"\\\"\"'bonjour'") |
