aboutsummaryrefslogtreecommitdiff
path: root/helper.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 /helper.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 'helper.c')
-rw-r--r--helper.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index 3fd496f..d3f7cb4 100644
--- a/helper.c
+++ b/helper.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/06 18:13:38 by cacharle #+# #+# */
-/* Updated: 2020/02/21 01:14:37 by cacharle ### ########.fr */
+/* Updated: 2020/04/02 20:31:04 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,6 +24,8 @@ char buf[BUF_SIZE + 1] = {0};
void test_setup(void)
{
+ origin_buf = NULL;
+ user_buf = NULL;
if (saved_stdout != -1)
test_tear_down();
saved_stdout = dup(STDOUT_FILENO);
@@ -80,6 +82,12 @@ void print_signaled_ko(char *msg)
fflush(stdout);
}
+void print_timeouted(char *msg)
+{
+ printf("FAIL/TIMEOUT<>ARGS:%s<>EXPECTED:<>ACTUAL:\n", msg);
+ fflush(stdout);
+}
+
inline void print_ok(void) { printf("OK\n"); fflush(stdout); }
void ft_putstr_non_printable(char *str)