diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-01 17:21:52 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-01 17:23:57 +0100 |
| commit | 762ff2fcaf45d6b94fb580e168baf3f01ebd61e1 (patch) | |
| tree | 89f02b4319104e4cc1c612286b859cbe59304aa0 | |
| parent | 573d059fc002343f280945a6a58482c7e018566c (diff) | |
| download | ft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.tar.gz ft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.tar.bz2 ft_printf_test-762ff2fcaf45d6b94fb580e168baf3f01ebd61e1.zip | |
Added README.md and .gitignore
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | README.md | 17 | ||||
| -rwxr-xr-x | a.out | bin | 33288 -> 0 bytes | |||
| -rw-r--r-- | a.tmp | 31 | ||||
| -rwxr-xr-x | ft_printf_test | bin | 33704 -> 0 bytes | |||
| -rw-r--r-- | helper.o | bin | 2088 -> 0 bytes | |||
| -rw-r--r-- | main.o | bin | 4784 -> 0 bytes | |||
| -rw-r--r-- | moulitest_read_stdout.o | bin | 2400 -> 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` Binary files differ@@ -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 Binary files differdeleted file mode 100755 index f970eee..0000000 --- a/ft_printf_test +++ /dev/null diff --git a/helper.o b/helper.o Binary files differBinary files differdeleted file mode 100644 index a070f30..0000000 --- a/helper.o +++ /dev/null diff --git a/moulitest_read_stdout.o b/moulitest_read_stdout.o Binary files differdeleted file mode 100644 index f206a20..0000000 --- a/moulitest_read_stdout.o +++ /dev/null |
