Unretirement request: pagure.io/releng/issue/12907
Revert "Retired: Fails to install: https://pagure.io/releng/issue/12871"
This reverts commit a12e378e73.
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
This commit is contained in:
parent
a12e378e73
commit
947ceab00c
8 changed files with 1162 additions and 1 deletions
47
tests/gdbtest.py.data/return99.c
Normal file
47
tests/gdbtest.py.data/return99.c
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void empty()
|
||||
{
|
||||
}
|
||||
|
||||
void write_stdout()
|
||||
{
|
||||
fprintf(stdout, "testing output to stdout\n");
|
||||
}
|
||||
|
||||
void write_stderr()
|
||||
{
|
||||
fprintf(stderr, "testing output to stderr\n");
|
||||
}
|
||||
|
||||
int forkme()
|
||||
{
|
||||
int pid;
|
||||
|
||||
pid = fork();
|
||||
if (pid != 0)
|
||||
pid = fork();
|
||||
if (pid != 0)
|
||||
pid = fork();
|
||||
|
||||
return pid;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int exit_status = 99;
|
||||
|
||||
if (argc > 1)
|
||||
exit_status = atoi(argv[1]);
|
||||
|
||||
empty();
|
||||
write_stdout();
|
||||
write_stderr();
|
||||
|
||||
if (forkme()) {
|
||||
fprintf(stdout, "return %i\n", exit_status);
|
||||
}
|
||||
|
||||
return exit_status;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue