summaryrefslogtreecommitdiff
path: root/basic/qa/vba_tests/instr.vb
diff options
context:
space:
mode:
Diffstat (limited to 'basic/qa/vba_tests/instr.vb')
-rw-r--r--basic/qa/vba_tests/instr.vb2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/qa/vba_tests/instr.vb b/basic/qa/vba_tests/instr.vb
index 29f35249e919..0e3eb7e5230e 100644
--- a/basic/qa/vba_tests/instr.vb
+++ b/basic/qa/vba_tests/instr.vb
@@ -6,7 +6,7 @@ Dim result As String
Function doUnitTest() As String
result = verify_testInStr()
-If failCount <> 0 And passCount > 0 Then
+If failCount <> 0 Or passCount = 0 Then
doUnitTest = result
Else
doUnitTest = "OK"