Rename regression to test

This commit is contained in:
Fabing Li
2024-06-28 19:12:24 +08:00
committed by Tate, Hongliang Tian
parent 5eefd600cc
commit f675552c5a
147 changed files with 196 additions and 108 deletions

18
test/apps/execve/execve.c Normal file
View File

@ -0,0 +1,18 @@
// SPDX-License-Identifier: MPL-2.0
#include <stdio.h>
#include <unistd.h>
int main()
{
char *argv[] = { "argv1", "argv2", NULL };
char *envp[] = { "home=/", "version=1.1", NULL };
// The hello will be put at /execve/hello in InitRamfs
printf("Execve a new file /execve/hello:\n");
// flush the stdout content to ensure the content print to console
fflush(stdout);
execve("/test/execve/hello", argv, envp);
printf("Should not print\n");
fflush(stdout);
return 0;
}