Преглед изворни кода

finally get travis build without errors

hathach пре 13 година
родитељ
комит
7355a45a67
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/test/host/ehci/test_ehci_structure.c

+ 1 - 1
tests/test/host/ehci/test_ehci_structure.c

@@ -100,7 +100,7 @@ void test_struct_size(void)
 {
 {
   if (4 < sizeof(void*)) // running tests in x64 environment
   if (4 < sizeof(void*)) // running tests in x64 environment
   {
   {
-    TEST_ASSERT_EQUAL( 64 - 2*sizeof(void*), offsetof(ehci_qhd_t, p_qtd_list_head) );
+    TEST_ASSERT_EQUAL( 64 - 8, offsetof(ehci_qhd_t, p_qtd_list_head) ); // 64 - 2x 32-bit pointer qtds
   }else
   }else
   {
   {
     TEST_ASSERT_EQUAL( 64, sizeof(ehci_qhd_t) );
     TEST_ASSERT_EQUAL( 64, sizeof(ehci_qhd_t) );