Do not build test if HW_TESTS is not enabled (to avoid warnings)

This commit is contained in:
Jakub Jelen
2018-02-10 19:35:12 +01:00
parent 38ce95cf1c
commit f5c42cef89
+2
View File
@@ -92,6 +92,7 @@ void teardown(void) {
ck_assert_int_eq(res, YKPIV_OK); ck_assert_int_eq(res, YKPIV_OK);
} }
#ifdef HW_TESTS
START_TEST(test_devicemodel) { START_TEST(test_devicemodel) {
ykpiv_rc res; ykpiv_rc res;
ykpiv_devmodel model; ykpiv_devmodel model;
@@ -926,6 +927,7 @@ START_TEST(test_pin_cache) {
ck_assert_int_eq(res, YKPIV_OK); ck_assert_int_eq(res, YKPIV_OK);
} }
END_TEST END_TEST
#endif
int destruction_confirmed(void) { int destruction_confirmed(void) {
char *confirmed = getenv("YKPIV_ENV_HWTESTS_CONFIRMED"); char *confirmed = getenv("YKPIV_ENV_HWTESTS_CONFIRMED");