diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-02 20:51:30 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-02 20:52:13 +0200 |
| commit | 25d81fe88c7e9aebe011b7b625b4eb7d31936591 (patch) | |
| tree | 9990ee49ac9ad31ea2b6eb45dad285cc398e7e0c /main.c | |
| parent | 63e9453f1543cfa98dcb9d2b5078bc919f90d9a9 (diff) | |
| download | ft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.tar.gz ft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.tar.bz2 ft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.zip | |
Added timeout detection
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/06 18:13:45 by cacharle #+# #+# */ -/* Updated: 2020/02/26 17:33:55 by cacharle ### ########.fr */ +/* Updated: 2020/04/02 20:46:17 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,11 +16,19 @@ int main(int argc, char **argv) { + timeout.tv_sec = 1; + timeout.tv_usec = 0; + if (pipe(timeout_pipe) == -1) + return (1); + (void)argc; (void)argv; + + timeout.tv_sec = 0; + timeout.tv_usec = 100000; test_pft_nacked(); test_pft_percent(); - /* test_pft_nocrash(); */ + test_pft_nocrash(); test_pft_string(); test_pft_int_i(); test_pft_int_d(); |
