Skip to content

Commit

Permalink
Applied updates and changes to AppVeyor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jan 14, 2019
1 parent 0cccbec commit 79c7062
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 41 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ test_script:
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
.\runtests.ps1 }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
C:\cygwin\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
C:\cygwin\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
C:\cygwin64\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
C:\cygwin64\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
C:\msys64\usr\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
C:\msys64\usr\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1; RESULT=$?; if test ${RESULT} -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi; exit ${RESULT};" )

after_test:
- cmd: if [%TARGET%]==[mingw-gcc-no-optimization] (
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ( 2.59 )

AC_INIT(
[libpff],
[20190112],
[20190114],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
37 changes: 21 additions & 16 deletions libpff/libpff_allocation_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ int libpff_allocation_table_read_data(
uint8_t allocation_table_type = 0;
uint8_t allocation_table_type_copy = 0;
uint8_t bit_index = 0;
int result = 0;

#if defined( HAVE_DEBUG_OUTPUT )
uint64_t value_64bit = 0;
Expand Down Expand Up @@ -376,14 +377,16 @@ int libpff_allocation_table_read_data(
unallocated_size );
}
#endif
if( libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error ) != 1 )
result = libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error );

if( result == -1 )
{
libcerror_error_set(
error,
Expand Down Expand Up @@ -414,14 +417,16 @@ int libpff_allocation_table_read_data(
unallocated_size );
}
#endif
if( libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error ) != 1 )
result = libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error );

if( result == -1 )
{
libcerror_error_set(
error,
Expand Down
37 changes: 21 additions & 16 deletions libpff/libpff_free_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int libpff_free_map_read(
uint8_t free_map_entry = 0;
uint8_t free_map_type = 0;
uint8_t free_map_type_copy = 0;
int result = 0;

#if defined( HAVE_DEBUG_OUTPUT )
uint16_t value_16bit = 0;
Expand Down Expand Up @@ -340,14 +341,16 @@ int libpff_free_map_read(
}
else if( unallocated_size > 0 )
{
if( libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error ) != 1 )
result = libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error );

if( result == -1 )
{
libcerror_error_set(
error,
Expand All @@ -367,14 +370,16 @@ int libpff_free_map_read(
}
if( unallocated_size > 0 )
{
if( libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error ) != 1 )
result = libcdata_range_list_insert_range(
unallocated_block_list,
unallocated_offset,
unallocated_size,
NULL,
NULL,
NULL,
error );

if( result == -1 )
{
libcerror_error_set(
error,
Expand Down
4 changes: 2 additions & 2 deletions m4/libcdata.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl Checks for libcdata required headers and functions
dnl
dnl Version: 20190104
dnl Version: 20190112

dnl Function to detect if libcdata is available
dnl ac_libcdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments
Expand All @@ -25,7 +25,7 @@ AC_DEFUN([AX_LIBCDATA_CHECK_LIB],
[test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"],
[PKG_CHECK_MODULES(
[libcdata],
[libcdata >= 20190104],
[libcdata >= 20190112],
[ac_cv_libcdata=yes],
[ac_cv_libcdata=check])
])
Expand Down
4 changes: 2 additions & 2 deletions m4/tests.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dnl Functions for testing
dnl
dnl Version: 20180905
dnl Version: 20190112

dnl Function to detect if tests dependencies are available
AC_DEFUN([AX_TESTS_CHECK_LOCAL],
Expand All @@ -17,7 +17,7 @@ AC_DEFUN([AX_TESTS_CHECK_LOCAL],
[AC_DEFINE(
[HAVE_GNU_DL_DLSYM],
[1],
[Define to 1 if dlsym funtion is available in GNU dl.])
[Define to 1 if dlsym function is available in GNU dl.])
])
])

16 changes: 16 additions & 0 deletions msvscpp/libcdata/libcdata.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@
RelativePath="..\..\libcdata\libcdata_btree.c"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_btree_node.c"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_btree_values_list.c"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_error.c"
>
Expand Down Expand Up @@ -200,6 +208,14 @@
RelativePath="..\..\libcdata\libcdata_btree.h"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_btree_node.h"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_btree_values_list.h"
>
</File>
<File
RelativePath="..\..\libcdata\libcdata_definitions.h"
>
Expand Down

0 comments on commit 79c7062

Please sign in to comment.