Closed noloader closed 7 years ago
I think we see the same problem on MinGW, there is no code to use the Windows filesystem API. We only support readdir or a C++ filesystem library (either Boost or MSVC's version).
Or wait, unlike MinGW, Cygwin supports Unix APIs, right? So maybe this works:
diff --git a/src/build-data/os/cygwin.txt b/src/build-data/os/cygwin.txt
index 956f5b28d..a1234dc13 100644
--- a/src/build-data/os/cygwin.txt
+++ b/src/build-data/os/cygwin.txt
@@ -13,6 +13,7 @@ doc_dir docs
<target_features>
gettimeofday
timegm
+readdir
threads
filesystem
</target_features>
Would be good to support Win32 API in the filesystem code (for MinGW if nothing else), it is a simple function (just needs to do a recursive readdir and return all results). But I don't have any Windows dev machines, and hate programming blind using CI to check work (AppVeyor builds have 2-6 hour turnaround which makes testing commits a lot like how 60s batch programming must have been).
@randombit,
Yep, that fixed it. Thanks.
asus-windows8:botan$ ./botan-test.exe
Testing Botan 2.0.0 (unreleased, revision git:c46692e9562e0faa6961532c21998d5cd5c2ee20, distribution unspecified)
Starting tests rng:HMAC_DRBG with seed '14978CA42341E6A0'
AES-128 ran 10422 tests in 51.41 msec all ok
AES-192 ran 12150 tests in 55.47 msec all ok
AES-256 ran 13878 tests in 63.27 msec all ok
...
Fixed on master, thanks
This may be related to Issue 276, Let fuzzer test handle unavailable filesystem access properly:
And then: