unclebob/fitnesse — Issue #59: Acceptance tests fail on ecryptfs mount
Author: gbacon
Created: 2012-01-29 13:37:02+00:00
State: open

I have a clone of the fitnesse repo beneath my ecryptfs-mounted home directory.

Running FitNesse.SuiteAcceptanceTests, I get a red bar

> Testing was interupted and results are incomplete.
> Test Pages: 141 right, 0 wrong, 0 ignored, 0 exceptions
> Assertions: 1110 right, 0 wrong, 130 ignored, 0 exceptions (0.000 seconds)

The last test header is

```java
SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect
```

and it has no test output. Attempting to run that one test gives a red bar

> Testing was interupted and results are incomplete.
> Assertions: 0 right, 0 wrong, 0 ignored, 0 exceptions

The standard error from the Java process contains

java.lang.RuntimeException: java.io.FileNotFoundException: FitNesseRoot/files/testProgress/FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect (File name too long)
at util.FileUtil.createFile(FileUtil.java:37)
at util.FileUtil.createFile(FileUtil.java:26)
at fitnesse.responders.run.formatters.PageInProgressFormatter.newTestStarted(PageInProgressFormatter.java:23)
at fitnesse.responders.run.formatters.CompositeFormatter.newTestStarted(CompositeFormatter.java:57)
at fitnesse.responders.run.MultipleTestsRunner.startingNewTest(MultipleTestsRunner.java:230)
at fitnesse.responders.run.MultipleTestsRunner.acceptOutputFirst(MultipleTestsRunner.java:222)
at fitnesse.responders.run.TestSystem.acceptOutputFirst(TestSystem.java:114)
at fitnesse.responders.run.slimResponder.SlimTestSystem.processTablesAndGetHtml(SlimTestSystem.java:314)
at fitnesse.responders.run.slimResponder.SlimTestSystem.processAllTablesOnPage(SlimTestSystem.java:296)
at fitnesse.responders.run.slimResponder.SlimTestSystem.runTestsAndGenerateHtml(SlimTestSystem.java:240)
at fitnesse.responders.run.MultipleTestsRunner.executeTestSystemPages(MultipleTestsRunner.java:136)
at fitnesse.responders.run.MultipleTestsRunner.startTestSystemAndExecutePages(MultipleTestsRunner.java:117)
at fitnesse.responders.run.MultipleTestsRunner.executePagesInTestSystem(MultipleTestsRunner.java:102)
at fitnesse.responders.run.MultipleTestsRunner.internalExecuteTestPages(MultipleTestsRunner.java:85)
at fitnesse.responders.run.MultipleTestsRunner.executeTestPages(MultipleTestsRunner.java:57)
at fitnesse.responders.run.TestResponder.performExecution(TestResponder.java:144)
at fitnesse.responders.run.TestResponder.doSending(TestResponder.java:45)
at fitnesse.responders.ChunkingResponder.startSending(ChunkingResponder.java:67)
at fitnesse.responders.ChunkingResponder.access$000(ChunkingResponder.java:17)
at fitnesse.responders.ChunkingResponder$RespondingRunnable.run(ChunkingResponder.java:98)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.FileNotFoundException: FitNesseRoot/files/testProgress/FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect (File name too long)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:209)
at java.io.FileOutputStream.(FileOutputStream.java:160)
at util.FileUtil.createFile(FileUtil.java:33)
... 20 more

When running `ant acceptance_tests`, the build reports success but probably shouldn't:

[...]
[java] . 07:34:28 R:2 W:0 I:0 E:0 NoScenarioSectionIfThereAreNone	(FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.NoScenarioSectionIfThereAreNone)	0.049 seconds
[java] java.lang.RuntimeException: java.io.FileNotFoundException: FitNesseRoot/files/testProgress/FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect (File name too long)
[java]	at util.FileUtil.createFile(FileUtil.java:37)
[java]	at util.FileUtil.createFile(FileUtil.java:26)
[java]	at fitnesse.responders.run.formatters.PageInProgressFormatter.newTestStarted(PageInProgressFormatter.java:23)
[java]	at fitnesse.responders.run.formatters.CompositeFormatter.newTestStarted(CompositeFormatter.java:57)
[java]	at fitnesse.responders.run.MultipleTestsRunner.startingNewTest(MultipleTestsRunner.java:230)
[java]	at fitnesse.responders.run.MultipleTestsRunner.acceptOutputFirst(MultipleTestsRunner.java:222)
[java]	at fitnesse.responders.run.TestSystem.acceptOutputFirst(TestSystem.java:114)
[java]	at fitnesse.responders.run.slimResponder.SlimTestSystem.processTablesAndGetHtml(SlimTestSystem.java:314)
[java]	at fitnesse.responders.run.slimResponder.SlimTestSystem.processAllTablesOnPage(SlimTestSystem.java:296)
[java]	at fitnesse.responders.run.slimResponder.SlimTestSystem.runTestsAndGenerateHtml(SlimTestSystem.java:240)
[java]	at fitnesse.responders.run.MultipleTestsRunner.executeTestSystemPages(MultipleTestsRunner.java:136)
[java]	at fitnesse.responders.run.MultipleTestsRunner.startTestSystemAndExecutePages(MultipleTestsRunner.java:117)
[java]	at fitnesse.responders.run.MultipleTestsRunner.executePagesInTestSystem(MultipleTestsRunner.java:102)
[java]	at fitnesse.responders.run.MultipleTestsRunner.internalExecuteTestPages(MultipleTestsRunner.java:85)
[java]	at fitnesse.responders.run.MultipleTestsRunner.executeTestPages(MultipleTestsRunner.java:57)
[java]	at fitnesse.responders.run.SuiteResponder.performExecution(SuiteResponder.java:47)
[java]	at fitnesse.responders.run.TestResponder.doSending(TestResponder.java:45)
[java]	at fitnesse.responders.ChunkingResponder.startSending(ChunkingResponder.java:67)
[java]	at fitnesse.responders.ChunkingResponder.access$000(ChunkingResponder.java:17)
[java]	at fitnesse.responders.ChunkingResponder$RespondingRunnable.run(ChunkingResponder.java:98)
[java]	at java.lang.Thread.run(Thread.java:679)
[java] Caused by: java.io.FileNotFoundException: FitNesseRoot/files/testProgress/FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect (File name too long)
[java]	at java.io.FileOutputStream.open(Native Method)
[java]	at java.io.FileOutputStream.(FileOutputStream.java:209)
[java]	at java.io.FileOutputStream.(FileOutputStream.java:160)
[java]	at util.FileUtil.createFile(FileUtil.java:33)
[java]	... 20 more
[java] --------
[java] 141 Tests,	0 Failures	0.000 seconds.
[java] 0
[java] Exit-Code: 0
[java]
[java] -----Command Complete-----

BUILD SUCCESSFUL
Total time: 47 seconds