1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#include <stic.h>
#include <test-utils.h>
#include "../../src/ui/tabs.h"
#include "../../src/utils/fs.h"
#include "../../src/background.h"
#include "../../src/signals.h"
static char *saved_cwd;
DEFINE_SUITE();
SETUP_ONCE()
{
fix_environ();
/* Remember original path in global SETUP_ONCE instead of SETUP to make sure
* nothing will change the path before we try to save it. */
saved_cwd = save_cwd();
assert_success(bg_init());
tabs_init();
setup_signals();
}
TEARDOWN()
{
restore_cwd(saved_cwd);
saved_cwd = save_cwd();
}
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */
/* vim: set cinoptions+=t0 filetype=c : */
|