Slava Zanko
3dc343f2df
Added HAVE_SUBSHELL_SUPPORT condition to Makefile files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 16:44:20 +03:00
Slava Zanko
0abc3c494f
Avoid warnings in tests: added headers
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 15:33:18 +03:00
Slava Zanko
1202e21314
Avoid warnings in tests
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 13:57:33 +03:00
Slava Zanko
84fecff024
Ticket #2883 : non-portable test
...
Test has been rewritten for support actuality.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-12-20 13:38:01 +03:00
Andrew Borodin
a8030670b7
Clarify usage of AM_CPPFLAGS.
...
Use AM_CPPFLAGS not AM_CFLAGS for includes. GLIB_CFLAGS are CPPFLAGS, actually.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-12-18 16:33:25 +04:00
Andrew Borodin
2209738d1a
Ticket #2918 : cygwin test failure.
...
In
tests/lib/mcconfig/Makefile.am
tests/lib/vfs/Makefile.am
tests/src/filemanager/Makefile.am
AM_LDFLAGS = -Wl,-z,muldefs
is used, but on cygwin the linker does not accept the "-z" option and
AM_LDFLAGS = -Wl,--allow-multiple-definition
is required instead.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-11-14 13:35:47 +04:00
Slava Zanko
e80e1f1174
Ticket #2803 : fixed bug do_panel_cd: FTBFS with --enable-tests on [kfreebsd-i386,kfreebsd-amd64,ia64,armhf]
...
One of the panel tests fail if build environment doesn't contain the home user directory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-06-29 13:04:21 +03:00
Andrew Borodin
ea291531d5
Tests tweak and cleanup in case of --disable-charset option usage.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-06-25 17:07:47 +04:00
Andrew Borodin
1dca9945c5
Ticket #2786 : added forgotten test source file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-25 19:10:07 +03:00
Andrew Borodin
7d5261a1dc
(do_load_dir): use vfs_path_t as a path handle.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-22 14:08:53 +04:00
Sergei Trofimovich
c8e584dead
Ticket #2768 ('make check' failed)
...
tests/.../do_panel_cd.c: fix test when 'HOME' contains trailing slashes.
Steps to reproduce:
$ HOME=${HOME}/ make check
Running suite(s): /src/filemanager
cwd=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp
mc_config_get_home_dir ()=/subvolumes/var_tmp/paludis/app-misc-mc-9999/temp/
0%: Checks: 1, Failures: 1, Errors: 0
do_panel_cd.c:86:F:Core:test_do_panel_cd_empty_mean_home:0: Assertion 'ret' failed
The patch adds home dir path normalization.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-22 10:31:55 +03:00
Sergei Trofimovich
f5550766fe
tests/.../do_panel_cd.c: show patch mismath on test failure
...
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-22 10:31:55 +03:00
Slava Zanko
80d4a13daf
fixup! Added tests for examine_cd() function.
2012-04-22 10:31:54 +03:00
Slava Zanko
0e96c18858
Changed lot of functions in src/ directory
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:53 +03:00
Slava Zanko
d590e13fb1
Changed do_cd() and do_panel() functions
...
...to handle vfs_path_t objects.
Changed panelized_panel_t.root type to vfs_path_t.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:53 +03:00
Slava Zanko
9a7750ca2f
Added unit test for do_panel_cd() functions.
...
Check if empty directory is mean 'change current directory to home dir'.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Andrew Borodin
3a2db1ee36
Added tests for examine_cd() function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:41 +03:00