mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
here_doc: null marker returns error
This commit is contained in:
parent
99babbf6d2
commit
442aa85e84
3 changed files with 28 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/07 11:43:32 by khais #+# #+# */
|
||||
/* Updated: 2025/03/10 18:23:36 by khais ### ########.fr */
|
||||
/* Updated: 2025/03/11 11:19:16 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -34,7 +34,15 @@ static void test_here_doc_filename_generation(void)
|
|||
do_leak_check();
|
||||
}
|
||||
|
||||
static void test_here_doc_null_args(void)
|
||||
{
|
||||
ft_dprintf(STDERR_FILENO, "==> %s <==\n", __FUNCTION__);
|
||||
assert(-1 == here_doc(NULL));
|
||||
do_leak_check();
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
test_here_doc_filename_generation();
|
||||
test_here_doc_null_args();
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue