File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -582,11 +582,17 @@ fn test_eager_evaluation() {
582582#[ test]
583583fn test_long_input ( ) {
584584 // Giving expr an arbitrary long expression should succeed rather than end with a segfault due to a stack overflow.
585- #[ cfg( not( windows) ) ]
585+ #[ cfg( all ( not( windows) , not ( target_os = "openbsd" ) ) ) ]
586586 const MAX_NUMBER : usize = 40000 ;
587- #[ cfg( not( windows) ) ]
587+ #[ cfg( all ( not( windows) , not ( target_os = "openbsd" ) ) ) ]
588588 const RESULT : & str = "800020000\n " ;
589589
590+ // On OpenBSD, crash with default MAX_NUMBER
591+ #[ cfg( target_os = "openbsd" ) ]
592+ const MAX_NUMBER : usize = 10000 ;
593+ #[ cfg( target_os = "openbsd" ) ]
594+ const RESULT : & str = "50005000\n " ;
595+
590596 // On windows there is 8192 characters input limit
591597 #[ cfg( windows) ]
592598 const MAX_NUMBER : usize = 1300 ; // 7993 characters (with spaces)
You can’t perform that action at this time.
0 commit comments