Opened 11 years ago
Closed 11 years ago
#2509 closed defect (fixed)
dumper regress post scripts on windows getting permission denied
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 2.2.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
regress/dumper/literalsrid .psql -v "VERBOSITY=terse" -tXA postgis_reg < regress/dumper/literalsrid-pre.sql > /projects/postgis/tmp/2.2_pg9.3w64/test_1_tmp 2>&1...... ok psql -v "VERBOSITY=terse" -tXA postgis_reg < regress/dumper/literalsr is/tmp/2.2_pg9.3w64/test_1_tmp: Permission denied failed (Unable to run sql script regress/dumper/literalsrid-post.sql: /projects/postgis/tmp/2.2_pg9.3w64/test_1_tmp) ) ... but cleanup sql failed! uninstall .. ok (4112 Run tests: 2
this is a continuation of #2507 saga
The actual tests past, but cleanup fails.
As noted it that ticket PointWithSchema loader test has both a pre and post regress, and that passes, so not sure what is wrong with dumper tests.
strk Please disable these tests if you can't fix the issue. It's a bogus error and preventing me from working on PostGIS 2.2
Change History (5)
comment:1 by , 11 years ago
Owner: | changed from | to
---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
I think the unlink $tmpfile may be causing the problem. I remarked that out and the tests pass. Maybe we need to put in a sleep or something. I'll try that next.
comment:4 by , 11 years ago
On IRC You mentioned you commented out the unlink on line 478, which is within the run_simple_sql function which I haven't recently touched. Anyway, looking at the function I saw there was no closing of the filedescriptor opened for reading. Maybe that's the reason for a permission denied on unlink. Try r12038 which closes both that specific filedescriptor and another in another place of the code...
please try r12037