facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
24 lines
548 B
C
24 lines
548 B
C
#include <gio/gio.h>
|
|
|
|
static void
|
|
test_autoptr (void)
|
|
{
|
|
g_autoptr(GFile) p = g_file_new_for_path ("/blah");
|
|
g_autoptr(GInetAddress) a = g_inet_address_new_from_string ("127.0.0.1");
|
|
g_autofree gchar *path = g_file_get_path (p);
|
|
g_autofree gchar *istr = g_inet_address_to_string (a);
|
|
|
|
g_assert_cmpstr (path, ==, G_DIR_SEPARATOR_S "blah");
|
|
g_assert_cmpstr (istr, ==, "127.0.0.1");
|
|
}
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
g_test_init (&argc, &argv, NULL);
|
|
|
|
g_test_add_func ("/autoptr/autoptr", test_autoptr);
|
|
|
|
return g_test_run ();
|
|
}
|