aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-02-28 10:04:53 +0100
committerLukas Larsson <[email protected]>2018-03-01 10:25:24 +0100
commit75b0f73f72e1783d4ace976cdd2b5f23bdc3ebae (patch)
tree879dc876b4bc99b4853145d17ba3f194594f5424 /lib/kernel/test
parentb600910bf17c92721fb8da04e8c508d6395dabc4 (diff)
downloadotp-75b0f73f72e1783d4ace976cdd2b5f23bdc3ebae.tar.gz
otp-75b0f73f72e1783d4ace976cdd2b5f23bdc3ebae.tar.bz2
otp-75b0f73f72e1783d4ace976cdd2b5f23bdc3ebae.zip
kernel: Fix handling of os:cmd option max_size in win
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/os_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/test/os_SUITE.erl b/lib/kernel/test/os_SUITE.erl
index 079b9790f6..a0bcde68db 100644
--- a/lib/kernel/test/os_SUITE.erl
+++ b/lib/kernel/test/os_SUITE.erl
@@ -324,8 +324,8 @@ max_size_command(_Config) ->
Res32768 = os:cmd("cat /dev/zero", #{ max_size => 32768 }),
32768 = length(Res32768),
- ResHello = os:cmd("echo hello", #{ max_size => 20 }),
- 6 = length(ResHello).
+ ResHello = string:trim(os:cmd("echo hello", #{ max_size => 20 })),
+ 5 = length(ResHello).
%% Test that the os:perf_counter api works as expected
perf_counter_api(_Config) ->