Fixed some bad tests.
This commit is contained in:
parent
179eb4c36b
commit
6590c588d7
|
@ -54,12 +54,12 @@ before_build:
|
||||||
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
%DEPENDS% copy SDL2_mixer-2.0.2\%ARCH%\bin\*.dll %PREFIX%\lib > nul
|
||||||
|
|
||||||
# CMocka
|
# CMocka
|
||||||
#- |-
|
- |-
|
||||||
#%DEPENDS% appveyor DownloadFile https://cmocka.org/files/1.1/cmocka-1.1.0-mingw.zip
|
%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% 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\include\* %PREFIX%\include > nul
|
||||||
#%DEPENDS% copy cmocka-1.1.0\lib\*.a %PREFIX%\lib > nul
|
%DEPENDS% copy cmocka-1.1.0\lib\*.a %PREFIX%\lib > nul
|
||||||
#%DEPENDS% copy cmocka-1.1.0\bin\*.dll %PREFIX%\lib > nul
|
%DEPENDS% copy cmocka-1.1.0\bin\*.dll %PREFIX%\lib > nul
|
||||||
|
|
||||||
# Lua
|
# Lua
|
||||||
- |-
|
- |-
|
||||||
|
|
|
@ -51,7 +51,7 @@ static void test_linkedlist_append(void **state)
|
||||||
linkedlist_append(&list, v2);
|
linkedlist_append(&list, v2);
|
||||||
assert_int_equal(linkedlist_size(list), 2);
|
assert_int_equal(linkedlist_size(list), 2);
|
||||||
linkedlist_destroy(&list);
|
linkedlist_destroy(&list);
|
||||||
assert_int_equal( list, NULL );
|
assert_null( list );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_linkedlist_poplast(void **state)
|
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(linkedlist_size(list), 2);
|
||||||
|
|
||||||
assert_int_equal(*get, *value2);
|
assert_int_equal(*get, *value2);
|
||||||
assert_int_equal(get, value2);
|
assert_ptr_equal(get, value2);
|
||||||
|
|
||||||
linkedlist_destroy(&list);
|
linkedlist_destroy(&list);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue