Re: Runtime errors with testglib.exe (Win32 build)



Having recently built it under Win32 (using Visual C++) I decided to run the test application 
(testglib.exe). ÂEverything runs fine until I get to the File Functions test, at which point I keep getting 
debug assertions.

That is a problem in the C library then, that it generates "debug
assertions" for something that is perfectly legal like close(-1).
Calling close() on a value that is not an open file descriptor is
pointless, but not an error.

But yeah, we could check that in testglib.c and don't call close() on
-1.  Committed and pushed to master and glib-2-26.

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]