]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/perf_index/iperf.c
xnu-2782.1.97.tar.gz
[apple/xnu.git] / tools / tests / perf_index / iperf.c
diff --git a/tools/tests/perf_index/iperf.c b/tools/tests/perf_index/iperf.c
deleted file mode 100644 (file)
index a8d0f3a..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <fcntl.h>
-#include "perf_index.h"
-#include <errno.h>
-
-const stress_test_t iperf_test = {"iperf", &stress_general_init, &iperf, &stress_general_cleanup, &validate_iperf};
-
-DECL_VALIDATE(validate_iperf) {
-  return (test_argc >= 1);
-}
-
-DECL_TEST(iperf) {
-  char *cmd;
-  assert(asprintf(&cmd, "iperf -c \"%s\" -n %lld > /dev/null", test_argv[0], length) >= 0);
-  assert(system(cmd) == 0);
-  free(cmd);
-}