瀏覽代碼

AppVeyor/MinGW: Try to debug CI build

bel 8 年之前
父節點
當前提交
eb0c708d42
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      test/timertest.c

+ 4 - 1
test/timertest.c

@@ -131,7 +131,10 @@ START_TEST(test_timer_cyclic)
     https://ci.appveyor.com/project/civetweb/civetweb/build/job/epsqi8perbca1jd6
     https://ci.appveyor.com/project/civetweb/civetweb/build/job/epsqi8perbca1jd6
     https://github.com/civetweb/civetweb/issues/366#issuecomment-269383810
     https://github.com/civetweb/civetweb/issues/366#issuecomment-269383810
     */
     */
-    return;
+    {
+        int d = (c[0] * c[0]) + (c[1] * c[1]) + (c[2] * c[2]);
+        ck_assert_int_le(d, 3);
+    }    
 #else
 #else
 	ck_assert_int_ge(c[0], -1);
 	ck_assert_int_ge(c[0], -1);
 	ck_assert_int_le(c[0], +1);
 	ck_assert_int_le(c[0], +1);