sunandap / airhead-research

Automatically exported from code.google.com/p/airhead-research
0 stars 0 forks source link

unit tests creates giant file #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run ant test
2. watch test fail
3.

What is the expected output? What do you see instead?

Testsuite: edu.ucla.sspace.common.MatricesTest
Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 0.354 sec

Testcase: createSparseMatrix took 0.254 sec
Testcase: createArrayMatrix took 0.005 sec
Testcase: createOnDiskTest took 0.004 sec
        Caused an ERROR
java.io.IOException: No space left on device
java.io.IOError: java.io.IOException: No space left on device
        at
edu.ucla.sspace.common.matrix.OnDiskMatrix.<init>(OnDiskMatrix.java:97)
        at
edu.ucla.sspace.common.matrix.OnDiskMatrix.<init>(OnDiskMatrix.java:72)
        at edu.ucla.sspace.common.Matrices.create(Matrices.java:101)
        at
edu.ucla.sspace.common.MatricesTest.createOnDiskTest(MatricesTest.java:46)
Caused by: java.io.IOException: No space left on device
        at java.io.RandomAccessFile.setLength(Native Method)
        at
edu.ucla.sspace.common.matrix.OnDiskMatrix.<init>(OnDiskMatrix.java:92)

This test really shouldn't create such a large file.  On user systems, this
may interfere with hard drive performance, page files, etc. as the disk
gets filled up just for a single test.

Original issue reported on code.google.com by David.Ju...@gmail.com on 18 Jun 2009 at 1:15

GoogleCodeExporter commented 9 years ago
Removing the violating test cases

Original comment by FozzietheBeat@gmail.com on 1 Oct 2009 at 12:18