diff options
author | Araq <rumpf_a@web.de> | 2019-06-07 10:37:00 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-06-07 10:37:00 +0200 |
commit | 447cc1ff09c877c5cab380cdabdfba446a5cafe7 (patch) | |
tree | 12d2a64028cf443b230f8c2c3f99b1aefa072b25 /nimpretty/tests | |
parent | 554908df0cc80d8a983a5fccdc8951094c38b180 (diff) | |
download | Nim-447cc1ff09c877c5cab380cdabdfba446a5cafe7.tar.gz |
nimpretty: fixes #10295
Diffstat (limited to 'nimpretty/tests')
-rw-r--r-- | nimpretty/tests/exhaustive.nim | 9 | ||||
-rw-r--r-- | nimpretty/tests/expected/exhaustive.nim | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim index 2903a59af..b8042af06 100644 --- a/nimpretty/tests/exhaustive.nim +++ b/nimpretty/tests/exhaustive.nim @@ -366,3 +366,12 @@ proc fun4() = var i = 0 while i<a.len and i<a.len: return + + +# bug #10295 + +import osproc +let res = execProcess( + "echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates") + +let res = execProcess("echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates") diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim index cd3d136e7..91a2e9027 100644 --- a/nimpretty/tests/expected/exhaustive.nim +++ b/nimpretty/tests/expected/exhaustive.nim @@ -375,3 +375,13 @@ proc fun4() = var i = 0 while i < a.len and i < a.len: return + + +# bug #10295 + +import osproc +let res = execProcess( + "echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates") + +let res = execProcess( + "echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates") |