summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-04 22:49:49 +0100
committerEike Rathke <erack@redhat.com>2016-01-06 13:30:57 +0000
commite39803815715d7b4fdfa7e1d4b3ebb07c16ca17e (patch)
treeb12b57fb3f05506146f4e2b331463b135c78a7ab /sc
parentd4ff96c740695401acbb4bb9e6a15a3c9c14fc53 (diff)
don't use the same files in different unit tests
I currently assume that this is responsible for some of our heisenbugs on windows. I think the windows file locking is causing issues when two test try to access the same file in parallel. This is more likely to happen on the fast windows ci boxes. Change-Id: I423f6c723c2ec558026867a118972e98279bd2c2 Reviewed-on: https://gerrit.libreoffice.org/21145 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/contentCSV/new_cond_format_test_export.csv22
-rw-r--r--sc/qa/unit/data/ods/new_cond_format_test_export.odsbin0 -> 13124 bytes
-rw-r--r--sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsxbin0 -> 11254 bytes
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx8
4 files changed, 26 insertions, 4 deletions
diff --git a/sc/qa/unit/data/contentCSV/new_cond_format_test_export.csv b/sc/qa/unit/data/contentCSV/new_cond_format_test_export.csv
new file mode 100644
index 000000000000..37893fc474d9
--- /dev/null
+++ b/sc/qa/unit/data/contentCSV/new_cond_format_test_export.csv
@@ -0,0 +1,22 @@
+,top n elements,,bottom n elements,,top n percent,,bottom n percent,,above average,,below average,,above equal average,,below equal average
+,1,,1.00,,1,,1.00,,1,,1.00,,2,,2.00
+,2,,2.00,,2,,2.00,,2,,2.00,,3,,3.00
+,3,,3.00,,3,,3,,3,,3.00,,4,,4.00
+,4,,4,,4,,4,,4,,4.00,,5,,5.00
+,5,,5,,5,,5,,5,,5.00,,6,,6.00
+,6,,6,,6,,6,,6,,6.00,,7,,7.00
+,7,,7,,7,,7,,7,,7.00,,11.00,,11
+,10,,10,,10,,10,,10.00,,10,,10.00,,10.00
+,11,,11,,11,,11,,11.00,,11,,11.00,,11
+,12,,12,,12,,12,,12.00,,12,,12.00,,12
+,13,,13,,13,,13,,13.00,,13,,13.00,,13
+,14,,14,,14,,14,,14.00,,14,,14.00,,14
+,15,,15,,15,,15,,15.00,,15,,15.00,,15
+,16.00,,16,,16,,16,,16.00,,16,,16.00,,16
+,17.00,,17,,17,,17,,17.00,,17,,17.00,,17
+,18.00,,18,,18,,18,,18.00,,18,,18.00,,18
+,19.00,,19,,19.00,,19,,19.00,,19,,19.00,,19
+,20.00,,20,,20.00,,20,,20.00,,20,,20.00,,20
+,1,,1.00,,1,,1.00,,1,,1.00,,2,,2.00
+,2,,2.00,,2,,2.00,,2,,2.00,,2,,2.00
+,3,,3.00,,3,,3,,3,,3.00,,3,,3.00
diff --git a/sc/qa/unit/data/ods/new_cond_format_test_export.ods b/sc/qa/unit/data/ods/new_cond_format_test_export.ods
new file mode 100644
index 000000000000..9418c43b6076
--- /dev/null
+++ b/sc/qa/unit/data/ods/new_cond_format_test_export.ods
Binary files differ
diff --git a/sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsx b/sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsx
new file mode 100644
index 000000000000..0750188d473f
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsx
Binary files differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index b8dc55150b2f..475570e73964 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -351,13 +351,13 @@ void ScExportTest::testPasswordExport()
void ScExportTest::testConditionalFormatExportODS()
{
- ScDocShellRef xShell = loadDoc("new_cond_format_test.", FORMAT_ODS);
+ ScDocShellRef xShell = loadDoc("new_cond_format_test_export.", FORMAT_ODS);
CPPUNIT_ASSERT(xShell.Is());
ScDocShellRef xDocSh = saveAndReload(&(*xShell), FORMAT_ODS);
CPPUNIT_ASSERT(xDocSh.Is());
ScDocument& rDoc = xDocSh->GetDocument();
- OUString aCSVFile("new_cond_format_test.");
+ OUString aCSVFile("new_cond_format_test_export.");
OUString aCSVPath;
createCSVPath( aCSVFile, aCSVPath );
testCondFile(aCSVPath, &rDoc, 0);
@@ -367,14 +367,14 @@ void ScExportTest::testConditionalFormatExportODS()
void ScExportTest::testConditionalFormatExportXLSX()
{
- ScDocShellRef xShell = loadDoc("new_cond_format_test.", FORMAT_XLSX);
+ ScDocShellRef xShell = loadDoc("new_cond_format_test_export.", FORMAT_XLSX);
CPPUNIT_ASSERT(xShell.Is());
ScDocShellRef xDocSh = saveAndReload(&(*xShell), FORMAT_XLSX);
CPPUNIT_ASSERT(xDocSh.Is());
ScDocument& rDoc = xDocSh->GetDocument();
{
- OUString aCSVFile("new_cond_format_test.");
+ OUString aCSVFile("new_cond_format_test_export.");
OUString aCSVPath;
createCSVPath( aCSVFile, aCSVPath );
testCondFile(aCSVPath, &rDoc, 0);