From d54764ea2ea3e8f49d44e629601745d578d108a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 31 Oct 2020 17:37:05 +0100 Subject: [PATCH] Testsuite [Stdio.Buffer]: Removed some search() tests. These variants of search() are only valid in Pike 8.1 and later. Fixes several testsuite failures. --- src/modules/_Stdio/testsuite.in | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/modules/_Stdio/testsuite.in b/src/modules/_Stdio/testsuite.in index 46e2664432..bb00c1dd6f 100644 --- a/src/modules/_Stdio/testsuite.in +++ b/src/modules/_Stdio/testsuite.in @@ -899,9 +899,8 @@ dnl search test_any_equal([[ Stdio.Buffer b = Stdio.Buffer("foobar"); return ({ search(b, 'f'), search(b, 'o'), search(b, 'x'), search(b, 0), - search(b, -1), search(b, 'o', 1), search(b, 'o', 2), - search(b, 'o', 0, 0), search(b, 'o', 0, 3) }); -]], ({ 0, 1, -1, -1, -1, 1, 2, -1, 1 })) + search(b, -1), search(b, 'o', 1), search(b, 'o', 2) }); +]], ({ 0, 1, -1, -1, -1, 1, 2, })) test_any([[ Stdio.Buffer b = Stdio.Buffer("hejhopp"); @@ -928,9 +927,5 @@ test_any([[ Stdio.Buffer b = Stdio.Buffer("hejhopphej"); return search(b, "he", 1); ]], 7) -test_any([[ - Stdio.Buffer b = Stdio.Buffer("hejhopp"); - return search(b, "ho", 0, 3); -]], -1) END_MARKER -- GitLab