diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-04 22:49:49 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-04 22:51:52 +0100 |
commit | 9bed7b2a7a43ce73c7e6189722809b607be74805 (patch) | |
tree | 579813a7ed14ce8265d71600e740925e417b68d7 /sc | |
parent | fa354c9ae940ae12abf26b1d8c62836d4e50dfb4 (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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/contentCSV/new_cond_format_test_export.csv | 22 | ||||
-rw-r--r-- | sc/qa/unit/data/ods/new_cond_format_test_export.ods | bin | 0 -> 13124 bytes | |||
-rw-r--r-- | sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsx | bin | 0 -> 11254 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_export-test.cxx | 8 |
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 Binary files differnew file mode 100644 index 000000000000..9418c43b6076 --- /dev/null +++ b/sc/qa/unit/data/ods/new_cond_format_test_export.ods 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 Binary files differnew file mode 100644 index 000000000000..0750188d473f --- /dev/null +++ b/sc/qa/unit/data/xlsx/new_cond_format_test_export.xlsx 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); |