File: fix-test

package info (click to toggle)
rakudo 2022.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,252 kB
  • sloc: perl: 4,700; ansic: 2,719; java: 2,578; javascript: 590; makefile: 431; sh: 363; cpp: 152
file content (18 lines) | stat: -rw-r--r-- 929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix repl test
 This should fix this flapping test by increasing the time-out. 
Bug: https://github.com/rakudo/rakudo/issues/1257
Bug-Debian: https://bugs.debian.org/880795
Origin: https://github.com/rakudo/rakudo/issues/1257#issuecomment-373997566
Index: rakudo/t/02-rakudo/repl.t
===================================================================
--- rakudo.orig/t/02-rakudo/repl.t
+++ rakudo/t/02-rakudo/repl.t
@@ -234,7 +234,7 @@ is-run-repl ['Nil'], /Nil/, 'REPL output
 {
     # REPL must not start, but if it does start and wait for input, it'll
     # "hang", from our point of view, which the test function will detect
-    doesn't-hang \(:w, $*EXECUTABLE,
+    doesn't-hang :10wait, \(:w, $*EXECUTABLE,
         '--repl-mode=interactive', '-M', 'NonExistentModuleRT128595'
     ), :out(/^$/), :err(/'Could not find NonExistentModuleRT128595'/),
     'REPL with -M with non-existent module does not start';