Loading...
tests/fgets.c Libc-1725.40.4 /dev/null
--- Libc/Libc-1725.40.4/tests/fgets.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <darwintest.h>
-#include <darwintest_utils.h>
-
-#include "libc_hooks_helper.h"
-
-T_DECL(libc_libc_fgets, "Test libc_hooks for fgets")
-{
-    // Setup
-    T_SETUPBEGIN;
-    FILE *f = fopen("/dev/null", "r");
-    T_SETUPEND;
-
-    // Test
-    char buf[256];
-    libc_hooks_log_start();
-    fgets(buf, 42, f);
-    libc_hooks_log_stop(2);
-
-    // Check
-    T_LOG("fgets(buf, 42, f)");
-    libc_hooks_log_expect(LIBC_HOOKS_LOG(libc_hooks_will_write, buf, 42), "checking buf");
-    libc_hooks_log_expect(LIBC_HOOKS_LOG(libc_hooks_will_write, f, sizeof(*f)), "checking f");
-
-    // Cleanup
-    fclose(f);
-}