aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-02 20:51:30 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-02 20:52:13 +0200
commit25d81fe88c7e9aebe011b7b625b4eb7d31936591 (patch)
tree9990ee49ac9ad31ea2b6eb45dad285cc398e7e0c /main.c
parent63e9453f1543cfa98dcb9d2b5078bc919f90d9a9 (diff)
downloadft_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.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.c b/main.c
index f4405e4..ca47745 100644
--- a/main.c
+++ b/main.c
@@ -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();