Commit Graph
405 Commits
Author SHA1 Message Date
Michael Weghorn 0c32aa6acf dbaccess a11y test: Drop long disabled TableWindowAccessibility Java test
That Java a11y/UNO test has been disabled since

    commit 553eedabbc
    Author: Vladimir Glazounov <vg@openoffice.org>
    Date:   Tue Oct 23 08:46:59 2007 +0000

        INTEGRATION: CWS unoapi1 (1.3.508); FILE MERGED
        2007/08/15 13:44:01 cn 1.3.508.1: #i79479# update files

The test can still be seen failing by enabling it locally
like this

    diff --git a/dbaccess/qa/unoapi/dbaccess.sce b/dbaccess/qa/unoapi/dbaccess.sce
    index 13fa966abe1a..cc67e49a98a9 100644
    --- a/dbaccess/qa/unoapi/dbaccess.sce
    +++ b/dbaccess/qa/unoapi/dbaccess.sce
    @@ -29,4 +29,4 @@
     -o dbaccess.OSQLMessageDialog
     -o dbaccess.OSingleSelectQueryComposer
     #i95611 -o dbaccess.SbaXGridControl
    -#i84128 -o dbaccess.TableWindowAccessibility
    +-o dbaccess.TableWindowAccessibility

and then running `make JunitTest_dbaccess_unoapi`.

Drop the broken test altogether.

If there should be a relevant test again in the future,
writing a new (presumably C++, see [1]) one from scratch seems more
promising than having to deal with this outdated and disabled
test.

Dropping it also prepares for an upcoming dbaccess a11y change
that would break even more assumptions that the test makes.

[1] https://wiki.documentfoundation.org/Development/Accessibility_Unit_Tests

Change-Id: I540668d84a867e2c051f6c327a0b9c62e594db1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210358
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-09-02 14:32:26 +02:00
Vissarion Fisikopoulos b75d3c0dd5 tdf#46841 Keep SQL query format
When editing an SQL query in SQL view it is important to keep the
formating. To secure this this fix implements a warning dialogue that
fires in the case a query is last saved in SQL view and the user tries
to open it in Design view and when the user switches from SQL view to
Design view since editing in Design view may canonicalize and rewrite
the query thus destroying its formatting.

This is related to tdf#42713 that impements something similar but for
queries with comments. Note that after this fix the mechanism
implemented for tdf#42713 is only kept for backward compatibility and
could be removed in the future.

Change-Id: I47f46d8953dc4b1e7326413d6f97ca35eeaa3a22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208786
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
Tested-by: Jenkins
2026-07-30 15:22:07 +02:00
Vissarion Fisikopoulos ef11378a8d tdf#42713 maintain comments format
If the query has comments then maintain the format when saving
and warn the user when switching or start editing in design view
that the comments could be lost. The user will have the choice
to keep the formating as well as the placement of comments in
the query.

Change-Id: I3de2313f8808a0b1093ce38de3bc9aa775656067
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207198
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
Tested-by: Jenkins
2026-06-29 11:37:14 +02:00
Vissarion Fisikopoulos 67b51abd65 tdf#42713: maintain SQL comments in design view
When an SQL query has comments then those were deleted
when switching to design view. This is fixed and the comments
are maintained. In the case the query is edited in design
view then the comments are inevitably lost.

Change-Id: Ibcf6e36fce88a526c7340d352aca9859b1b3714e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205441
Tested-by: Jenkins
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
2026-06-09 16:11:29 +02:00
Vissarion Fisikopoulos ec73986ca7 tdf#153057 enable Base to filter date and time values with firebird embedded db
Add cases for date, time and timestamp data types in prepared statement
of firebird embedded database. Add unit tests for this particular case
and for testing the DBTypeConversion functions toDate, toTime,
toDateTime that used in the fix.

Change-Id: I91fd2322598b14f84a96f071ed029c9b3e64d51e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204841
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-06 16:48:48 +02:00
Noel Grandin 4e6f8e76bf SvStream::ReadByteStringLine should not need to specify encoding
Instead, rely on the stream being set into the correct encoding
during stream initialisation.

Change-Id: Icceb067e600140589c329429d12add2ef3d471c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200458
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-26 20:19:02 +01:00
RHUSHYA.K.C 56ebc8519b tdf#132293 Remove unused imports from tdf99619_create_join_undo_redo.py
Removed unused 'time' and 'DEFAULT_SLEEP' imports from
dbaccess/qa/uitest/query/tdf99619_create_join_undo_redo.py
to improve code quality.

Change-Id: If3f0f227e16463cba8b1491846c3822e10705dfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198935
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2026-02-21 08:07:33 +01:00
Neil Roberts 9b004694bb dbaccess/uitest: Wait for idle after selecting view mode
The .uno:DBViewTables and .uno:DBViewQueries commands are executed
asynchronously by posting an event to the main thread from
OApplicationController. This creates a race condition for the test where
the following call to .uno:SelectAll silently fails if the event is not
processed before the command is dispatched. After that the attempt to
open a new subcomponent fails, the OnLoad event is never sent and the
test gets stuck in an infinite loop until the kill-wrapper kills it.
This happens for example in the following build log:

https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/193243/console

I think I can artificially reproduce the problem locally by adding a
sleep in OApplicationController::OnSelectContainer and at least in that
case this patch appears to fix it. It just makes the tests wait until
the main thread is idle after issuing the commands to switch the view.

Change-Id: If8698114c30cf4219310a9c1b2a2bb365debea8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194376
Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk>
Tested-by: Jenkins
2025-11-23 08:09:42 +01:00
Neil Roberts 70e001ae2d UITest: Add a method to open a subcomponent through a command
The Base UI tests all need to open a window that operates on the same
database, such as opening the table editor etc. There seems to be a few
race conditions related to opening sub windows that occasionally make
the tests fail so the idea with this patch is to make a central place in
test.py to add code to handle opening the window and closing it when
finished. That way we can add any synchronisation needed in a central
place.

For getting access to the new frame, the three current tests were all
trying to handle this in different ways. insert_relation waits for the
OnSubComponentOpened event, create_join_undo_redo was waiting until the
current focus window changes and the edit_field test was just crossing
its fingers and hoping that the timing worked. This last one is the
likely culprit of the following Jenkins build error for the edit_field
test:

https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/193148/

The new helper method always listens for OnSubComponentOpened and then
extracts the new frame from that event.

When closing the window the shared code now always calls
waitUntilAllIdlesDispatched. .uno:CloseWin ends up being executing
asynchronously on the main thread which means that the later call to
.uno:CloseDoc can happen simultaneously. If --oneprocess is not used
then it will even end up directly calling dispose on the main frame
instead of calling CloseDoc. I haven’t been able to replicate the crash
locally, but is seems like this might be related to crashes like the one
below:

https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/193204/

Change-Id: Iab0a46c3ca9f8c9eb9ac7f4fecb07f633bd0b312
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194350
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-11-22 19:37:57 +01:00
Neil Roberts 46968eff8e UITest: Add method to execute a command for particular XDispatchProvider
The existing methods of XUITest to execute a command always use the
active frame to dispatch the command. All of the dbaccess UI tests end
up creating subcomponents (such as the table edit view) and need to send
commands to that. The frames for those are not the “active” frame but
only the “current” frame. All of the tests have ended up making a copy
of a helper function to dispatch to a particular provider. To avoid that
duplication this patch moves it to a common helper directly in XUITest.
This will also make it possible to use the method from test.py in a
later patch.

Note that the order of the arguments has been swapped around to match
that of comphelper::dispatchCommand.

Change-Id: I274fe12e4dfec0bf78359d0e2b70a3cf4db5528c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194348
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-11-22 19:37:18 +01:00
Neil Roberts e6ee6fb69a UITest/tdf99619: Close the query window at the end of the test
If we don’t close the edit query window then the main database window
closes leaving the just the query window open. When the test is run
without --oneprocess for some reason this causes a crash. This needs
some more investigation but in the meantime this lets us run without
--oneprocess and avoid some issues with the test being flaky on Jenkins
when run alongside the insert_relation test.

Change-Id: Iaca5c0359bf8d29e5ecf317c0689939e92de733a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194292
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-11-21 07:27:40 +01:00
Neil Roberts 44672742e7 Add a unit test for selecting between 3 tables when inserting a relation
The test creates a database with three tables and then creates a new
query involving all three tables. It does this so it can open the insert
relation dialog with more than two tables. It then selects various
values for the left table and makes sure that the right table is updated
so that it’s not the same.

Change-Id: Ifd23bb3343a415d828697719c17f5afbff55d856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194041
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-11-20 09:04:28 +01:00
Neil Roberts f016c1537d tdf#99619 Add a UI test
The UI test opens a database with two tables, creates a join between the
tables and then undos and redos the join.

Change-Id: I4ad03435ce9c6484f54aa563b46d868f21a47209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193762
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-11-11 06:46:47 +01:00
Neil Roberts c7b3ea692f tdf#75509 Add a UITest
Change-Id: I523e49b6711944b68e99324385df6c9188c0cd6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193174
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-10-30 11:32:04 +01:00
Gabor Kelemen 2060e38e11 tdf#146619 Run IWYU on dbaccess/
Change-Id: I86a60f94268ee3594c68fe9f1dfb4e2c819ac616
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189784
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-09-13 09:23:23 +02:00
Mike Kaganski 3a4961af43 Use o3tl::{get,set}Environment instead of resp. osl_* functions
Simplifies the code, and avoids OUString internals access.
Also replace some getenv calls.

Change-Id: I5f7dc492fe87ea1fbaad6a61bc54e21f0f0c5aef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187974
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-17 07:03:19 +02:00
Xisco Fauli 49b90d890c dbaccess: remove unused makefile.mk
Change-Id: Id1afe2c483e5e6d76f916e6038e7a5cbe0824073
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187269
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-07-02 13:40:07 +02:00
Noel Grandin 42190cd153 Revert "Move SingleSelectQueryComposer.java tests to C++"
This reverts commit d1ec7e9077.

To avoid deadlocks on jenkins.

Change-Id: Icbe299ed29dfd02f61b14953344a902e2184c606
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183535
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-03-31 18:08:26 +02:00
Noel Grandin c02c75ba1e fix CppunitTest_dbaccess_SingleSelectQueryComposer_test deadlock
I have seen several deadlocks on jenkins in this unit test, normally
with stacks like

 privateSnippetExecutor ()
 connectivity::hsqldb::OHsqlConnection::flush()
 connectivity::hsqldb::ODriverDelegator::flushConnections()
 connectivity::hsqldb::OConnectionController::queryTermination
 framework::Desktop::impl_sendQueryTerminationEvent
 framework::Desktop::terminate()
(anonymous namespace)::Hook::deinitHook((anonymous namespace)::Hook*,
LinkParamNone*)
 (anonymous namespace)::Hook::LinkStubdeinitHook(void*, LinkParamNone*)
 Link<LinkParamNone*, void>::Call(LinkParamNone*) const
 in DeInitVCL()

Implement a proper teardown in the unit test so this does not happen.

Change-Id: I3242752dc38d74128fcd134fe7391f04bd64ebc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183391
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-03-27 15:51:44 +01:00
Andrea Gelmini 1a922958d7 Fix typo
Change-Id: I87849a595bfaef20cbb06e683b012f35fe628119
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182912
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2025-03-14 15:00:50 +01:00
Adam Seskunas d1ec7e9077 Move SingleSelectQueryComposer.java tests to C++
Move the tests to SingleSelectQueryComposer_test.cxx
Remove the old SingleSelectQueryComposer JUnit tests/file
Add makefile for SingleSelectQueryComposer_test
Remove the java test from JunitTest_dbaccess_complex.mk
Add the CppUnit test to the Module_dbaccess.mk file to be
  run only when Java is enabled on the test machine

Change-Id: I832c80e294be6cd4dced4d358bcee383ea04b0fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182759
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-03-13 21:21:59 +01:00
Xisco Fauli fbdfde2639 CppunitTest_dbaccess_migration: Unify into 1 place
and use setUp and tearDown to enable/disable
the experimental mode

Change-Id: I922bc289179528d1fc1df1a3545315ec92489afc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182355
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-02-28 13:49:53 +01:00
Andrea Gelmini 4dd0f15fa0 Fix typo
Change-Id: I469c85a564707cf50e5730bcac345d1879694919
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181612
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2025-02-13 14:24:54 +01:00
Adam Seskunas c48ebfd863 Change the unparseable query to parse ODBC escape query
dbaccess/qa/connectivity/tools/CRMDatabase.java - remove unparseable query
dbaccess/qa/unit/dbtest_base.cxx - Add the ODBC escape query
dbacces/qa/unit/CRMDatabase_test.cxx - Add test

The unparseable query has been commented out for a number of
years in the CRMDatabase.java. At some point, this query has become
parseable so this commit removes the old commented out Java query,
moves the it to C++ and adds a CPPUNIT test for the queries parseability.

Change-Id: Ie4d700458bc6dfd52cd87aec75ec202dd12248ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181142
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-02-13 09:53:08 +01:00
Adam Seskunas dd386eddfd Port Query.java test to CppUnit
dbaccess/qa/unit/CRMDatabase_test.cxx add test
dbaccess/qa/complex/dbaccess remove Query.java
dbaccess/JunitTest_dbaccess_complex.mk remove test call

Change-Id: If21863de1fa4db738e3d51f93a3c7ca19130bb1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177278
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-14 09:22:55 +01:00
Noel Grandin 193207c5ab improve loplugin passparamsbyref
I think I managed to disable this when I converted it to
use the shared plugin infrastructure.

So fix that, and then make it much smarter to avoid various
false positives.

Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-19 07:46:25 +01:00
Adam Seskunas 37e082bd2b dbaccess/qa - Seperate database connection so it can be reused
Change-Id: I982cf589aff159149190c7f0f78dc8085a700240
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174981
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 10:06:15 +01:00
Mike Kaganski 1180b3473a com::sun::star -> css
Change-Id: I890ec73e30d3cc6b210903ecee29431f3cb5f635
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175979
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-10 10:50:15 +01:00
Xisco Fauli 30dee23a76 UnoApiTest: check mxComponent right after loading
Change-Id: Ia834d19a5af999440f7d5847aeeae863daacd952
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175784
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-29 13:50:40 +01:00
Xisco Fauli a38a22c7e5 UnoApiTest: rename load to loadFromURL and use it everywhere
Change-Id: Ie67eebec74f783fa0c29acfb23bb83bc582812b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175724
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-29 09:11:37 +01:00
Stephan Bergmann f72c9777f5 -Werror,-Wdeprecated-literal-operator
Change-Id: I4e2c4c1083587bfddd9f6a355f1ea7888573cc14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174876
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-10-14 08:05:29 +02:00
Ilmari Lauhakangas 656c48d4a2 cui, dbaccess, desktop, external, filter, librelogo: fix issues found by
Ruff linter

Change-Id: I34df4c10520406a2b9d2d8f3487f877698a324f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171090
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-27 12:51:55 +02:00
Mike Kaganski a245fd604c tdf#156530: fix OPreparedStatement::setString
The problem was, that the function only considered the target XSQLVAR's
sqltype,  ignoring sqlsubtype.  This led to a situation when assignment
to NUMERIC or DECIMAL  was treated as assignment  to an underlying type,
like SQL_LONG, performed without taking scale into account.

Use ColumnTypeInfo and its getSdbcType, which provides the correct type,
and add missing cases to setString.  Fix setObjectWithInfo to make sure
that the resulting number is correct.

This also fixes export of NUMERIC/DECIMAL in HSQL migration. Previously
it miscalculated the position of decimal separator,  which accidentally
went unnoticed in the existing unit test, because it was compensated by
broken handling in Firebird SDBC for the specific numbers in the test.

OResultSet::makeNumericString was also fixed; it didn't handle properly
the case of zero fractional part:  initial number 1200 with scale 2 was
converted to a string "12.000" instead of expected "12.00".

Change-Id: I5adac59737d21f91c782fe867d4827fb880fd62a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170812
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-21 17:22:52 +02:00
Adam Seskunas 3c8f9d02e8 dbaccess complex/DataSource.java to extras/dataSource.cxx
Port the Junit test in DataSource.java over to CppUnit.
In order to port the test as written in Java the
CRM Database was ported, so add a test for that here as
well.

Change-Id: Ib9ac369e3faaa30207b83368889763f0eb063876
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169071
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-07 20:07:06 +02:00
Xisco Fauli 7aba05331b DBTestBase: call close at tearDown
Otherwise, calling different tests one after the other
will fail with

warn:vcl:994718:994718:vcl/source/app/svmain.cxx:497: DeInitVCL: some top Windows are still alive
text = "lu9947181i0ytl.tmp — LibreOfficeDev Base" type = "10WorkWindow", ptr = 0x555b3ab76810

Change-Id: I6124b768e165ed841738d29c6071e7950b58229f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170058
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-06 09:08:58 +02:00
Adam Seskunas 57de449009 Port CRMDatabase from Java to C++
--Port createTables and createQueries
--Add a general test for the CRMDatabase
--Edit Make file

Change-Id: Ifbbb9010c8d8b8a4a199af73539b1f6a9ec45a0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169573
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-02 08:45:36 +02:00
Xisco Fauli fb8f4b57ce DBTestBase: Add createDBDocument
it can be used later on when porting the java tests
to CppUnittest

Change-Id: I17420fdf490d979392f5aeb90c3b3bfb319d7764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169274
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-06-20 15:44:26 +02:00
Xisco Fauli 39714d3e66 CppunitTest_dbaccess_embeddeddb_performancetest: use maTempFile
Change-Id: Ib63008ddaf9aeb0ed02dd5cbc9680eda2cefbfac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169269
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-20 15:35:02 +02:00
Andrea Gelmini 07a84353fb Fix typo
Change-Id: I84a64e6a2e90d462ed7eb5fe4adeb3c6966c91c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169215
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-06-19 23:03:20 +02:00
Xisco Fauli ed54d14d5c CppunitTest_dbaccess_macros_test: remove redundant test
This was added in 0f4451c0b3
"first part of a c++ based test for base" as an example on
how to test base documents.
At this point we already have other base tests doing
more interesting stuff so I believe this test is not needed
anymore

Change-Id: Ice747800f3ab6d887d63595fe9dbdd531acf9014
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168684
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 21:32:53 +02:00
Xisco Fauli 1bcd3df23c dbaccess: use createTempCopy instead of doing it in make
Change-Id: Ib1e550dbe5ea74827562e3706c4a310171df77af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168675
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 16:23:22 +02:00
Noel Grandin d52a4dba6a loplugin:ostr in dbaccess
Change-Id: I6d720ef94d9f29c120f292b844721621e6630856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167259
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-07 12:53:22 +02:00
Gabor Kelemen 69303d5d09 tdf#146619 Drop unused 'using namespace' in: dbaccess/
Change-Id: If006c5f0002b9d5981220efa22873bf0adb169bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165543
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2024-04-03 08:57:28 +02:00
Mike Kaganski a01a642ebb UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile
The old name was misleading (it doesn't take an URL, but a filename);
also, now it's easier to grep for it - doesn't get mixed with
vcl::graphic::loadFromURL.

Change-Id: Ib88d2194200a6a54d2326971e0306ba39f0c7025
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161578
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-01-03 07:51:28 +01:00
Chenxiong Qi 8b6e0dd9e4 tdf#158803 Fix issues detected by pyflakes
Change-Id: Iaa329dff61db894e7d5fecd840e785a53a48b26f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160889
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-12-27 13:48:47 +01:00
Noel Grandin eee1ff9651 enable unchecked lint for our java code
and annotate where necessary, mostly just suppressing the warnings

Change-Id: I8e39d797cde6c7c3f4e3e1bd93a128965ecec81d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159205
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-09 14:27:47 +01:00
Stephan Bergmann 7eda35a36c Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: dbaccess
Change-Id: I5f92e390ef57ae8f2aba43782c11ca5ee31dba93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158187
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-19 18:49:53 +02:00
Noel Grandin 0193b284e8 new loplugin:constexprliteral
OUStringLiteral should be declared constexpr, to enforce
that it is initialised at compile-time and not runtime.

This seems to make a different at least on Visual Studio

Change-Id: I1698f5fa22ddb480347c2f4d444530c2e0e88d92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153499
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-26 13:12:31 +02:00
Xisco Fauli e180a37b66 dbaccess: remove unused includes
Change-Id: I633040297d73ecb851ea71a516b4308f6809d939
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143463
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-29 14:51:01 +01:00
Xisco Fauli 6c3cebd5aa UnoApiTest: factor out createTempFile
Change-Id: I8d7bb4593839d3660b6609d836b09d50b68f5712
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143141
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-23 14:43:56 +01:00