/*
Authors:
Petr Čech <pcech@redhat.com>
Copyright (C) 2015 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 "tests/cmocka/common_mock.h"
#include "src/tools/common/sss_colondb.h"
{
errno = 0;
}
const char *name)
{
}
{
{ SSS_COLONDB_SENTINEL, { 0 } }
};
}
{
switch (file_state) {
case 0:
break;
case 1:
break;
case 2:
break;
default:
break;
}
return 0;
}
{
}
{
}
{
}
{
errno = 0;
if (ret != 0) {
}
return 0;
}
{
}
{
}
{
}
{
}
{
}
{
}
{
{ SSS_COLONDB_SENTINEL, { 0 } }
};
assert_int_equal(ret, 0);
}
{
{ SSS_COLONDB_SENTINEL, { 0 } }
};
assert_int_equal(ret, 0);
}
{
{ SSS_COLONDB_SENTINEL, { 0 } }
};
assert_int_equal(ret, 0);
}
{
const char *string;
{ SSS_COLONDB_SENTINEL, { 0 } }
};
}
{
{ SSS_COLONDB_SENTINEL, { 0 } }
};
{ SSS_COLONDB_SENTINEL, { 0 } }
};
assert_int_equal(ret, 0);
assert_int_equal(ret, 0);
}
{
int opt;
};
};
/* Set debug level to invalid value so we can decide if -d 0 was used. */
switch (opt) {
default:
poptStrerror(opt));
return 1;
}
}
/* Even though normally the tests should clean up after themselves
* they might not after a failed run. Remove the old DB to be sure */
}