commit 89dd30dc93dcee2a470c322901a63dd69f476a7c parent 630099c016f0cb6c231f10e78b77926ae57bdfaf Author: Roberto E. Vargas Caballero <k0ga@shike2.net> Date: Fri, 1 May 2026 19:03:41 +0200 tests/libc: Add 0093-system Diffstat:
| M | tests/libc/execute/.gitignore | | | 1 | + |
| A | tests/libc/execute/0093-system.c | | | 20 | ++++++++++++++++++++ |
| M | tests/libc/execute/libc-tests.lst | | | 1 | + |
3 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/tests/libc/execute/.gitignore b/tests/libc/execute/.gitignore @@ -91,3 +91,4 @@ test.log 0090-rand 0091-atexit 0092-getenv +0093-system diff --git a/tests/libc/execute/0093-system.c b/tests/libc/execute/0093-system.c @@ -0,0 +1,20 @@ +#include <stdio.h> +#include <stdlib.h> + +/* +output: +testing +hello +done +end: +*/ + +int +main(void) +{ + puts("testing"); + system("echo hello"); + puts("done"); + + return 0; +} diff --git a/tests/libc/execute/libc-tests.lst b/tests/libc/execute/libc-tests.lst @@ -89,3 +89,4 @@ 0090-rand 0091-atexit 0092-getenv +0093-system