mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Fix unit-tests when running on Linux with Windows \r\n new lines.
[SVN r75852]
This commit is contained in:
@@ -961,25 +961,22 @@ rule __test__ ( )
|
||||
{
|
||||
import assert ;
|
||||
|
||||
local nl = "
|
||||
" ;
|
||||
|
||||
local save-os = [ modules.peek os : .name ] ;
|
||||
|
||||
modules.poke os : .name : LINUX ;
|
||||
|
||||
assert.result "PATH=\"foo:bar:baz\"$(nl)export PATH$(nl)"
|
||||
assert.result "PATH=\"foo:bar:baz\"\nexport PATH\n"
|
||||
: path-variable-setting-command PATH : foo bar baz ;
|
||||
|
||||
assert.result "PATH=\"foo:bar:$PATH\"$(nl)export PATH$(nl)"
|
||||
assert.result "PATH=\"foo:bar:$PATH\"\nexport PATH\n"
|
||||
: prepend-path-variable-command PATH : foo bar ;
|
||||
|
||||
modules.poke os : .name : NT ;
|
||||
|
||||
assert.result "set PATH=foo;bar;baz$(nl)"
|
||||
assert.result "set PATH=foo;bar;baz\n"
|
||||
: path-variable-setting-command PATH : foo bar baz ;
|
||||
|
||||
assert.result "set PATH=foo;bar;%PATH%$(nl)"
|
||||
assert.result "set PATH=foo;bar;%PATH%\n"
|
||||
: prepend-path-variable-command PATH : foo bar ;
|
||||
|
||||
modules.poke os : .name : $(save-os) ;
|
||||
|
||||
Reference in New Issue
Block a user