Bump version to 6.4.7.2.M8
[LibreOffice.git] / basic / qa / basic_coverage / test_err_method.vb
blobc21b417b4200e5dd7502635445c240de451e38ab
1 ' This file is part of the LibreOffice project.
3 ' This Source Code Form is subject to the terms of the Mozilla Public
4 ' License, v. 2.0. If a copy of the MPL was not distributed with this
5 ' file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 Function doUnitTest as Integer
9 ' ERR
10 On Error GoTo ErrorHandler ' Set up error handler
11 Dim nVar As Integer
12 nVar = 0
13 nVar = 1/nVar
14 doUnitTest = 0
15 Exit Function
16 ErrorHandler:
17 If ( Err <> 11 ) Then
18 doUnitTest = 0
19 Else
20 doUnitTest = 1
21 Endif
22 End Function