/*
SSSD
Tests -- a simple test process that echoes input back
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2014 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <unistd.h>
#include <stdlib.h>
#include <popt.h>
#include "util/child_common.h"
{
int opt;
const char *guitar;
const char *drums;
_("Debug level"), NULL},
_("Add debug timestamps"), NULL},
_("Show timestamps with microseconds"), NULL},
_("An open file descriptor for the debug logs"), NULL},
_("Send the debug output to stderr directly."), NULL },
};
/* Set debug level to invalid value so we can decide if -d 0 was used. */
switch(opt) {
default:
_exit(1);
}
}
if (action) {
_exit(1);
}
if (debug_timestamps == 1) {
"debug_timestamp was passed when only extra args "
"should have been\n");
_exit(1);
}
_exit(1);
}
if (debug_timestamps != 1) {
"debug_timestamp was not passed as expected\n");
_exit(1);
}
errno = 0;
if (len == -1) {
_exit(1);
}
errno = 0;
if (written == -1) {
_exit(1);
}
_exit(1);
}
}
}
_exit(0);
}