@@ -24,7 +24,7 @@ function test_build(t)
24
24
os .runv (cmake .program , {" --build" , " ." }, {curdir = " build" })
25
25
cmake_default_dt = os .mclock () - cmake_default_dt
26
26
print (" build targets/30: cmake/default: %d ms" , cmake_default_dt )
27
- -- t:require((cmake_default_dt > xmake_dt) or (cmake_default_dt + 2000 > xmake_dt))
27
+ t :require ((cmake_default_dt > xmake_dt ) or (cmake_default_dt + 2000 > xmake_dt ))
28
28
29
29
local ninja = find_tool (" ninja" )
30
30
if ninja then
@@ -46,8 +46,7 @@ function test_build(t)
46
46
os .runv (cmake .program , {" --build" , " ." }, {curdir = " build" , envs = envs })
47
47
cmake_ninja_dt = os .mclock () - cmake_ninja_dt
48
48
print (" build targets/30: cmake/ninja: %d ms" , cmake_ninja_dt )
49
- -- TODO we need to improve it
50
- -- t:require((cmake_ninja_dt > xmake_dt) or (cmake_ninja_dt + 2000 > xmake_dt))
49
+ t :require ((cmake_ninja_dt > xmake_dt ) or (cmake_ninja_dt + 2000 > xmake_dt ))
51
50
end
52
51
53
52
local make = find_tool (" make" )
@@ -72,7 +71,7 @@ function test_build(t)
72
71
os .runv (meson .program , {" compile" , " -C" , " build" })
73
72
meson_dt = os .mclock () - meson_dt
74
73
print (" build targets/30: meson: %d ms" , meson_dt )
75
- -- t:require((meson_dt > xmake_dt) or (meson_dt + 2000 > xmake_dt))
74
+ t :require ((meson_dt > xmake_dt ) or (meson_dt + 2000 > xmake_dt ))
76
75
end
77
76
end
78
77
0 commit comments