Write more tests attempting to break windows

This time I haven't succeeded in breaking anything which is a good sign.
This commit is contained in:
Justine Tunney 2024-09-21 21:28:35 -07:00
parent 476926790a
commit 126a44dc49
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 331 additions and 37 deletions

View file

@ -16,7 +16,6 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/assert.h"
#include "libc/calls/createfileflags.internal.h"
#include "libc/calls/internal.h"
#include "libc/calls/sig.internal.h"
@ -170,14 +169,11 @@ sys_readwrite_nt(int fd, void *data, size_t size, ssize_t offset,
}
// the i/o operation was successfully canceled
if (got_eagain) {
unassert(!got_sig);
if (got_eagain)
return eagain();
}
// it's now reasonable to report semaphore creation error
if (other_error) {
unassert(!got_sig);
errno = __dos2errno(other_error);
return -1;
}