int main(int argc, char** argv) { g_unsetenv("DBUS_SESSION_BUS_ADDRESS"); gtk_test_init(&argc, &argv, 0); g_setenv("WEBKIT_EXEC_PATH", WEBKIT_EXEC_PATH, FALSE); g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE); g_setenv("LC_ALL", "C", TRUE); g_setenv("GIO_USE_VFS", "local", TRUE); g_setenv("GSETTINGS_BACKEND", "memory", TRUE); g_test_bug_base("https://bugs.webkit.org/"); registerGResource(); GOwnPtr<char> diskCacheTempDirectory(g_dir_make_tmp("WebKit2TestsDiskCache-XXXXXX", 0)); g_assert(diskCacheTempDirectory.get()); webkit_web_context_set_disk_cache_directory(webkit_web_context_get_default(), diskCacheTempDirectory.get()); beforeAll(); int returnValue = g_test_run(); afterAll(); removeNonEmptyDirectory(diskCacheTempDirectory.get()); return returnValue; }
int main(int argc, char** argv) { gtk_test_init(&argc, &argv, 0); g_setenv("WEBKIT_EXEC_PATH", WEBKIT_EXEC_PATH, FALSE); g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE); g_test_bug_base("https://bugs.webkit.org/"); registerGResource(); beforeAll(); int returnValue = g_test_run(); afterAll(); return returnValue; }