+ /* Test failing fclose */
+ fp = fopen(name, "wb");
+ assert(fp);
+ close(fileno(fp));
+ ok1(fclose_noerr(fp) == EBADF);
+
+ /* Test successful fclose */
+ fp = fopen(name, "wb");
+ assert(fp);
+
+ errno = 100;
+ ok1(fclose_noerr(fp) == 0);
+ ok1(errno == 100);
+ unlink(name);
+