summaryrefslogtreecommitdiff
path: root/basic/qa/vba_tests/stringplusdouble.vb
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-05-12 23:03:27 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-05-15 04:59:04 +0200
commitb9d75dea30adaa53be58c112f255c9fcd3eea400 (patch)
tree9e0dfdf1b792f934827c8ea530028447776fb124 /basic/qa/vba_tests/stringplusdouble.vb
parentf99c95c80d40431050fef655ac7ed05074768567 (diff)
basic: Fix broken logic in VBA's unit tests
It should not be "OK" when no assertion passes. Change-Id: Ib6bab2d597a138468e96b4acf8c3be7abd112cca Reviewed-on: https://gerrit.libreoffice.org/37540 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'basic/qa/vba_tests/stringplusdouble.vb')
-rw-r--r--basic/qa/vba_tests/stringplusdouble.vb2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/qa/vba_tests/stringplusdouble.vb b/basic/qa/vba_tests/stringplusdouble.vb
index 3f0cbd8ef21b..cfe4a5bc6cf3 100644
--- a/basic/qa/vba_tests/stringplusdouble.vb
+++ b/basic/qa/vba_tests/stringplusdouble.vb
@@ -6,7 +6,7 @@ Dim result As String
Function doUnitTest() As String
result = verify_stringplusdouble()
-If failCount <> 0 And passCount > 0 Then
+If failCount <> 0 Or passCount = 0 Then
doUnitTest = result
Else
doUnitTest = "OK"