| File tests/commands/call.c changed (mode: 100644) (index 43cfcfd24..a0d2ddc65) |
| ... |
... |
TEST(good_call) |
| 46 |
46 |
check_and_remove_file(); |
check_and_remove_file(); |
| 47 |
47 |
} |
} |
| 48 |
48 |
|
|
| 49 |
|
TEST(good_call_with_comment) |
|
|
49 |
|
// Disabled on Wine because when running both good_call() and |
|
50 |
|
// good_call_with_comment() on Wine 10.0 only the first one seems to work |
|
51 |
|
// (doesn't matter which one). Hard to say why. |
|
52 |
|
TEST(good_call_with_comment, IF(not_wine)) |
| 50 |
53 |
{ |
{ |
| 51 |
54 |
assert_success(cmds_dispatch1("call system('echo call> file') \" comment", |
assert_success(cmds_dispatch1("call system('echo call> file') \" comment", |
| 52 |
55 |
&lwin, CIT_COMMAND)); |
&lwin, CIT_COMMAND)); |
| File tests/misc/builtin_functions.c changed (mode: 100644) (index 89766a59b..654514c4e) |
| ... |
... |
TEST(expand_does_not_need_double_escaping) |
| 119 |
119 |
ASSERT_OK("expand('%c:p:gs!/!\\\\!')", "\\\\dir\\\\file"); |
ASSERT_OK("expand('%c:p:gs!/!\\\\!')", "\\\\dir\\\\file"); |
| 120 |
120 |
} |
} |
| 121 |
121 |
|
|
| 122 |
|
TEST(system_catches_stdout) |
|
|
122 |
|
/* 32-bit Wine doesn't catch output or maybe every time. */ |
|
123 |
|
TEST(system_catches_stdout, IF(not_wine32)) |
| 123 |
124 |
{ |
{ |
| 124 |
125 |
ASSERT_OK("system('echo a')", "a"); |
ASSERT_OK("system('echo a')", "a"); |
| 125 |
126 |
} |
} |
| 126 |
127 |
|
|
| 127 |
|
TEST(system_catches_stderr) |
|
|
128 |
|
/* 32-bit Wine doesn't catch output or maybe every time. */ |
|
129 |
|
TEST(system_catches_stderr, IF(not_wine32)) |
| 128 |
130 |
{ |
{ |
| 129 |
131 |
#ifndef _WIN32 |
#ifndef _WIN32 |
| 130 |
132 |
ASSERT_OK("system('echo a 1>&2')", "a"); |
ASSERT_OK("system('echo a 1>&2')", "a"); |
| |
| ... |
... |
TEST(system_catches_stderr) |
| 135 |
137 |
#endif |
#endif |
| 136 |
138 |
} |
} |
| 137 |
139 |
|
|
| 138 |
|
TEST(system_catches_stdout_and_err) |
|
|
140 |
|
/* 32-bit Wine doesn't catch output or maybe every time. */ |
|
141 |
|
TEST(system_catches_stdout_and_err, IF(not_wine32)) |
| 139 |
142 |
{ |
{ |
| 140 |
143 |
#ifndef _WIN32 |
#ifndef _WIN32 |
| 141 |
144 |
ASSERT_OK("system('echo a && echo b 1>&2')", "a\nb"); |
ASSERT_OK("system('echo a && echo b 1>&2')", "a\nb"); |
| |
| ... |
... |
TEST(system_catches_stdout_and_err) |
| 146 |
149 |
#endif |
#endif |
| 147 |
150 |
} |
} |
| 148 |
151 |
|
|
| 149 |
|
/* Something doesn't work on 32-bit Wine. */ |
|
| 150 |
|
TEST(term_catches_stdout, IF(not_wine)) |
|
|
152 |
|
/* 32-bit Wine doesn't catch output or maybe every time. */ |
|
153 |
|
TEST(term_catches_stdout, IF(not_wine32)) |
| 151 |
154 |
{ |
{ |
| 152 |
155 |
ASSERT_OK("term('echo a')", "a"); |
ASSERT_OK("term('echo a')", "a"); |
| 153 |
156 |
} |
} |