* test-mu-util.c: fix test_mu_util_dir_expand_03 for the symlink case
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright (C) 2008-2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2008-2012 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
#include "test-mu-common.h"
|
#include "test-mu-common.h"
|
||||||
#include "src/mu-util.h"
|
#include "src/mu-util.h"
|
||||||
@ -67,9 +68,12 @@ static void
|
|||||||
test_mu_util_dir_expand_03 (void)
|
test_mu_util_dir_expand_03 (void)
|
||||||
{
|
{
|
||||||
gchar *got;
|
gchar *got;
|
||||||
|
gchar curdir[PATH_MAX + 1];
|
||||||
|
|
||||||
|
realpath (ABS_CURDIR, curdir);
|
||||||
|
|
||||||
got = mu_util_dir_expand (".");
|
got = mu_util_dir_expand (".");
|
||||||
g_assert_cmpstr (got,==,ABS_CURDIR);
|
g_assert_cmpstr (got, ==, curdir);
|
||||||
|
|
||||||
g_free (got);
|
g_free (got);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user