Disabling a test that won't ever work on github

This commit is contained in:
Anonymus Raccoon
2020-05-05 14:31:05 +02:00
parent df5d54901e
commit 85f04bb154
+11 -10
View File
@@ -13,7 +13,7 @@ void eval(char *cmd, char **argv, env_t* env);
extern char **environ;
Test(execute, get_path)
Test(execute, get_path, .init = cr_redirect_stdout)
{
env_t *env = malloc(sizeof(env_t));
env->vars = NULL;
@@ -24,16 +24,17 @@ Test(execute, get_path)
cr_assert_fail();
}
Test(execute, absolute)
{
env_t *env = malloc(sizeof(env_t));
env->vars = NULL;
env->env = environ;
char **argv = get_argv("/usr/bin/ls");
// Disabled since github does not have ls in the /usr/bin/ls path.
// Test(execute, absolute, .init = cr_redirect_stdout)
// {
// env_t *env = malloc(sizeof(env_t));
// env->vars = NULL;
// env->env = environ;
// char **argv = get_argv("/usr/bin/ls");
eval(argv[0], argv, env);
cr_assert_fail();
}
// eval(argv[0], argv, env);
// cr_assert_fail();
// }
Test(execute, notfound, .init = cr_redirect_stderr)
{