vincent-hugot / qtest

Inline (Unit) Tests for OCaml
GNU General Public License v3.0
67 stars 8 forks source link

Stack overflow when using large number of tests #41

Closed copy closed 8 years ago

copy commented 8 years ago

The following test causes a stack overflow:

(*$Q & ~max_gen:1000000 ~count:1000000
  (Q.make (fun _ -> ())) (fun () -> true)
*)
Target file: `test/test_byson.ml'. Extraction : `byson.ml' Done.
Finished, 7 targets (7 cached) in 00:00:00.
random seed: 425639940
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Error: >>byson.ml:359

test `byson.ml:359:  (Q.make (fun _ -> ())) (fun () -> true)`
  raised exception `Stack overflow` on <instance>
///////////////////////////////////////////////////////////////////////////////
Ran: 2 tests in: 0.01 seconds.                                        
WARNING! SOME TESTS ARE NEITHER SUCCESSES NOR FAILURES!

Using qtest 2.2 from opam on 4.03.0+flambda.