delete_directory fails silently if it contains subfolders#637
delete_directory fails silently if it contains subfolders#637kroening merged 2 commits intodiffblue:masterfrom
Conversation
5992efe to
c7092f7
Compare
|
Would the |
src/util/file_util.cpp
Outdated
src/util/file_util.cpp
Outdated
src/util/file_util.cpp
Outdated
There was a problem hiding this comment.
This is not my code. I fear that if I change this it will expand the context area and you'll then find something else above that you want me to change too.
c7092f7 to
3eaa6a3
Compare
|
I've fixed @peterschrammel's lint errors. Unfortunately I don't have a Windows environment set up to implement and test this behaviour on Windows. I only use this fix in regression tests in the security scanner repo though so any issues will be quickly apparent and won't affect core CBMC. |
|
I believe @kroening has a Windows environment (and there would be one available via AppVeyor). |
|
Does @kroening want to test the following code to see if it can delete a folder containing a sub-folder and some files? If this is going to take much more of my time though I'm probably just going to close this issue and give up. Shame you can't get an improvement into CBMC without having to fix other broken code around it. Makes things take so long that really shouldn't. |
|
Did the previous code even work on Windows? unlink seems to be called with a path relative to the passed folder. |
|
I suggest to create a unit test for this in the /unit folder. So, we know at least if it works/worked/will-work-soon on all platforms. |
|
Code written and tested by @smowton for Windows has been added. |
a5caaf7 to
129a592
Compare
129a592 to
386c230
Compare
|
Thanks @NathanJPhillips and @smowton! |
386c230 to
5ae3b17
Compare
5ae3b17 to
d110db0
Compare
No description provided.