mirror of
https://github.com/mirror/make.git
synced 2026-09-04 21:52:55 +08:00
Update regression tests for Windows.
* tests/scripts/features/jobserver: Windows doesn't use pipes * tests/scripts/functions/shell: Don't test kill -2 on Windows * tests/scripts/misc/bs-nl: Windows doesn't handle single quotes * tests/scripts/misc/general3: Ditto.
This commit is contained in:
@@ -18,8 +18,11 @@ run_make_test("slow:;\@: no-op; echo sl\\\now\n",
|
||||
run_make_test("dquote:;\@echo \"dqu\\\note\"\n",
|
||||
'', 'dquote');
|
||||
|
||||
run_make_test("squote:;\@echo 'squ\\\note'\n",
|
||||
# Single quotes don't behave the same in Windows
|
||||
if ($port_type ne 'W32') {
|
||||
run_make_test("squote:;\@echo 'squ\\\note'\n",
|
||||
'', "squ\\\note");
|
||||
}
|
||||
|
||||
# Ensure that a leading prefix character is omitted
|
||||
run_make_test("fast:;\@echo fa\\\n\tst\n",
|
||||
@@ -31,8 +34,11 @@ run_make_test("slow:;\@: no-op; echo sl\\\n\tow\n",
|
||||
run_make_test("dquote:;\@echo \"dqu\\\n\tote\"\n",
|
||||
'', 'dquote');
|
||||
|
||||
run_make_test("squote:;\@echo 'squ\\\n\tote'\n",
|
||||
# Single quotes don't behave the same in Windows
|
||||
if ($port_type ne 'W32') {
|
||||
run_make_test("squote:;\@echo 'squ\\\n\tote'\n",
|
||||
'', "squ\\\note");
|
||||
}
|
||||
|
||||
# Ensure that ONLY the leading prefix character is omitted
|
||||
run_make_test("fast:;\@echo fa\\\n\t st\n",
|
||||
|
||||
@@ -88,7 +88,9 @@ foo bar
|
||||
foo bar');
|
||||
|
||||
# Test the fastpath / single quotes
|
||||
run_make_test("
|
||||
# Single quotes don't behave the same in Windows
|
||||
if ($port_type ne 'W32') {
|
||||
run_make_test("
|
||||
all:
|
||||
\@echo 'foo\\
|
||||
bar'
|
||||
@@ -123,6 +125,7 @@ foo \
|
||||
bar
|
||||
foo \
|
||||
bar');
|
||||
}
|
||||
|
||||
# Test the fastpath / double quotes
|
||||
run_make_test('
|
||||
|
||||
Reference in New Issue
Block a user