Fixed some bad tests.

This commit is contained in:
Linus Probert 2018-05-11 22:14:47 +02:00
parent 179eb4c36b
commit 6590c588d7
2 changed files with 8 additions and 8 deletions

View File

@ -54,12 +54,12 @@ before_build:
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\bin\*.dll %PREFIX%\lib > nul
# CMocka
#- |-
#%DEPENDS% appveyor DownloadFile https://cmocka.org/files/1.1/cmocka-1.1.0-mingw.zip
#%DEPENDS% 7z x cmocka-1.1.0-mingw.zip > nul
#%DEPENDS% copy cmocka-1.1.0\include\* %PREFIX%\include > nul
#%DEPENDS% copy cmocka-1.1.0\lib\*.a %PREFIX%\lib > nul
#%DEPENDS% copy cmocka-1.1.0\bin\*.dll %PREFIX%\lib > nul
- |-
%DEPENDS% appveyor DownloadFile https://cmocka.org/files/1.1/cmocka-1.1.0-mingw.zip
%DEPENDS% 7z x cmocka-1.1.0-mingw.zip > nul
%DEPENDS% copy cmocka-1.1.0\include\* %PREFIX%\include > nul
%DEPENDS% copy cmocka-1.1.0\lib\*.a %PREFIX%\lib > nul
%DEPENDS% copy cmocka-1.1.0\bin\*.dll %PREFIX%\lib > nul
# Lua
- |-

View File

@ -51,7 +51,7 @@ static void test_linkedlist_append(void **state)
linkedlist_append(&list, v2);
assert_int_equal(linkedlist_size(list), 2);
linkedlist_destroy(&list);
assert_int_equal( list, NULL );
assert_null( list );
}
static void test_linkedlist_poplast(void **state)
@ -193,7 +193,7 @@ static void test_linkedlist_get_index(void **state)
assert_int_equal(linkedlist_size(list), 2);
assert_int_equal(*get, *value2);
assert_int_equal(get, value2);
assert_ptr_equal(get, value2);
linkedlist_destroy(&list);