aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-01 17:21:52 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-01 17:23:57 +0100
commit762ff2fcaf45d6b94fb580e168baf3f01ebd61e1 (patch)
tree89f02b4319104e4cc1c612286b859cbe59304aa0
parent573d059fc002343f280945a6a58482c7e018566c (diff)
downloadft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.tar.gz
ft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.tar.bz2
ft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.zip
Added README.md and .gitignore
-rw-r--r--.gitignore4
-rw-r--r--README.md17
-rwxr-xr-xa.outbin33288 -> 0 bytes
-rw-r--r--a.tmp31
-rwxr-xr-xft_printf_testbin33704 -> 0 bytes
-rw-r--r--helper.obin2088 -> 0 bytes
-rw-r--r--main.obin4784 -> 0 bytes
-rw-r--r--moulitest_read_stdout.obin2400 -> 0 bytes
8 files changed, 21 insertions, 31 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5a19436
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+a.out
+ft_printf_test
+*.o
+*.ghc
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a6e7397
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+# ft_printf test
+
+Unit test for the ft_printf project of 42 school.
+
+## Usage
+
+Clone this repo such that:
+
+```
+`
+|- ft_printf_test/
+|- ft_printf/
+```
+
+or modify the `FT_PRINTF_PATH` variable in the Makefile
+
+`> make run`
diff --git a/a.out b/a.out
deleted file mode 100755
index fcf0f5c..0000000
--- a/a.out
+++ /dev/null
Binary files differ
diff --git a/a.tmp b/a.tmp
deleted file mode 100644
index ae0e529..0000000
--- a/a.tmp
+++ /dev/null
@@ -1,31 +0,0 @@
-do {
- capture_stdout();
- do {
- if ((pid = fork()) < 0)
- exit(1);
- if (pid == 0) {
- do {
- origin_ret = printf("%d", 10);
- origin_buf = strdup(capture_stdout_get_buf());
- } while(0);
- exit(0);
- }
- wait(&pid);
- signaled = (((*(int *)&(pid)) & 0177) != 0177 && ((*(int *)&(pid)) & 0177) != 0);
- } while(0);;
- origin_signaled = signaled;
- do {
- if ((pid = fork()) < 0)
- exit(1);
- if (pid == 0) {
- do {
- user_ret = ft_printf("%d", 10);
- user_buf = strdup(capture_stdout_get_buf());
- } while(0);
- exit(0);
- } wait(&pid);
- signaled = (((*(int *)&(pid)) & 0177) != 0177 && ((*(int *)&(pid)) & 0177) != 0);
- } while(0);;
- capture_stdout_destroy();
- user_signaled = signaled;
-} while (0);;
diff --git a/ft_printf_test b/ft_printf_test
deleted file mode 100755
index f970eee..0000000
--- a/ft_printf_test
+++ /dev/null
Binary files differ
diff --git a/helper.o b/helper.o
deleted file mode 100644
index a070f30..0000000
--- a/helper.o
+++ /dev/null
Binary files differ
diff --git a/main.o b/main.o
deleted file mode 100644
index 7c8d033..0000000
--- a/main.o
+++ /dev/null
Binary files differ
diff --git a/moulitest_read_stdout.o b/moulitest_read_stdout.o
deleted file mode 100644
index f206a20..0000000
--- a/moulitest_read_stdout.o
+++ /dev/null
Binary files differ