diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-03-01 05:26:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 14:26:39 +0100 |
commit | dd6b0f81efe54cbc17a79e5c3d7aa7aaf34357f6 (patch) | |
tree | 61b08aedf3d963fb80a501c7f8b8b6bfca0d9938 /lib/wrappers/linenoise/linenoise.nim | |
parent | aef55a7a888d28ac4215dbc8887fdcfcaf551770 (diff) | |
download | Nim-dd6b0f81efe54cbc17a79e5c3d7aa7aaf34357f6.tar.gz |
use `-r:off` for runnableExamples that should compile but not run (#17203)
* use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
Diffstat (limited to 'lib/wrappers/linenoise/linenoise.nim')
-rw-r--r-- | lib/wrappers/linenoise/linenoise.nim | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/wrappers/linenoise/linenoise.nim b/lib/wrappers/linenoise/linenoise.nim index 3bfd74586..c9f1dd695 100644 --- a/lib/wrappers/linenoise/linenoise.nim +++ b/lib/wrappers/linenoise/linenoise.nim @@ -58,14 +58,13 @@ when defined nimExperimentalLinenoiseExtra: ## line editing API that allows returning the line entered and an indicator ## of which control key was entered, allowing user to distinguish between ## for example ctrl-C vs ctrl-D. - runnableExamples("-d:nimExperimentalLinenoiseExtra"): - if false: - var ret: ReadLineResult - while true: - readLineStatus("name: ", ret) # ctrl-D will exit, ctrl-C will go to next prompt - if ret.line.len > 0: echo ret.line - if ret.status == lnCtrlD: break - echo "exiting" + runnableExamples("-d:nimExperimentalLinenoiseExtra -r:off"): + var ret: ReadLineResult + while true: + readLineStatus("name: ", ret) # ctrl-D will exit, ctrl-C will go to next prompt + if ret.line.len > 0: echo ret.line + if ret.status == lnCtrlD: break + echo "exiting" var data: linenoiseData let buf = linenoiseExtra(prompt, data.addr) result.line = $buf |