Przeglądaj źródła

test/core: Fix a align test case check align 2 bytes

reported via https://github.com/Nuclei-Software/nuclei-sdk/issues/56

Signed-off-by: Huaqi Fang <578567190@qq.com>
Huaqi Fang 2 lat temu
rodzic
commit
8a024ee62b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      test/core/test_compiler.c

+ 1 - 1
test/core/test_compiler.c

@@ -102,7 +102,7 @@ CTEST(compiler, aligned)
     uint32_t __ALIGNED(64) data2[4];
     unsigned long p_data = (unsigned long)(&data_aligned1);
     CTEST_LOG("Aligned 2 Byte Data address 0x%x", p_data);
-    ASSERT_EQUAL(p_data & (1 - 1), 0);
+    ASSERT_EQUAL(p_data & (2 - 1), 0);
     p_data = (unsigned long)(&data[0]);
     CTEST_LOG("Aligned 16 Byte Data address 0x%x", p_data);
     ASSERT_EQUAL(p_data & (16 - 1), 0);