/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Pavel Březina <pbrezina@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 <talloc.h>
#include <errno.h>
#include <popt.h>
#include "sbus/sssd_dbus.h"
#include "tests/cmocka/common_mock.h"
{
const char *strip;
}
{
char *escaped;
char *raw;
/* underscore is 0x5F in ascii */
/* empty string */
/* negative tests */
}
{
char *path;
/* Doesn't need escaping */
}
{
char *path;
/* A dot needs escaping */
}
const char **expected)
{
int i;
assert_non_null(input[i]);
assert_non_null(expected[i]);
}
assert_null(input[i]);
assert_null(expected[i]);
}
const char **expected,
{
}
{
char **components;
}
{
char **components;
}
{
char **components;
}
{
char **components;
}
{
char **components;
}
{
char **components;
}
{
char **components;
}
{
char *name;
}
{
int opt;
};
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
}