aboutsummaryrefslogtreecommitdiff
path: root/src/burn/test/BurnUnitTest/PlanTest.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-04-22 16:56:21 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-04-23 15:40:21 -0500
commita981e29d7a3df566754356c3fe1eb938a5cac4c1 (patch)
tree9d2b2abac872ae3c4917003812951e68b72e7163 /src/burn/test/BurnUnitTest/PlanTest.cpp
parent72e20f682c0d64102e86439ba5527dd0d71932ae (diff)
downloadwix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.tar.gz
wix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.tar.bz2
wix-a981e29d7a3df566754356c3fe1eb938a5cac4c1.zip
Make the estimated size in ARP a little more accurate.
Fixes 4039
Diffstat (limited to 'src/burn/test/BurnUnitTest/PlanTest.cpp')
-rw-r--r--src/burn/test/BurnUnitTest/PlanTest.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/burn/test/BurnUnitTest/PlanTest.cpp b/src/burn/test/BurnUnitTest/PlanTest.cpp
index f69606a0..be078c5c 100644
--- a/src/burn/test/BurnUnitTest/PlanTest.cpp
+++ b/src/burn/test/BurnUnitTest/PlanTest.cpp
@@ -106,7 +106,6 @@ namespace Bootstrapper
106 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 14); 106 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 14);
107 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 107 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
108 108
109 Assert::Equal(107082ull, pPlan->qwEstimatedSize);
110 Assert::Equal(522548ull, pPlan->qwCacheSizeTotal); 109 Assert::Equal(522548ull, pPlan->qwCacheSizeTotal);
111 110
112 fRollback = FALSE; 111 fRollback = FALSE;
@@ -252,7 +251,6 @@ namespace Bootstrapper
252 dwIndex = 0; 251 dwIndex = 0;
253 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 252 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
254 253
255 Assert::Equal(0ull, pPlan->qwEstimatedSize);
256 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 254 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
257 255
258 fRollback = FALSE; 256 fRollback = FALSE;
@@ -392,7 +390,6 @@ namespace Bootstrapper
392 dwIndex = 0; 390 dwIndex = 0;
393 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 391 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
394 392
395 Assert::Equal(18575450ull, pPlan->qwEstimatedSize);
396 Assert::Equal(78462280ull, pPlan->qwCacheSizeTotal); 393 Assert::Equal(78462280ull, pPlan->qwCacheSizeTotal);
397 394
398 fRollback = FALSE; 395 fRollback = FALSE;
@@ -503,7 +500,6 @@ namespace Bootstrapper
503 dwIndex = 0; 500 dwIndex = 0;
504 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 501 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
505 502
506 Assert::Equal(18575450ull, pPlan->qwEstimatedSize);
507 Assert::Equal(52254105ull, pPlan->qwCacheSizeTotal); 503 Assert::Equal(52254105ull, pPlan->qwCacheSizeTotal);
508 504
509 fRollback = FALSE; 505 fRollback = FALSE;
@@ -595,7 +591,6 @@ namespace Bootstrapper
595 dwIndex = 0; 591 dwIndex = 0;
596 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 592 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
597 593
598 Assert::Equal(0ull, pPlan->qwEstimatedSize);
599 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 594 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
600 595
601 fRollback = FALSE; 596 fRollback = FALSE;
@@ -703,7 +698,6 @@ namespace Bootstrapper
703 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1); 698 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1);
704 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 699 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
705 700
706 Assert::Equal(35694ull, pPlan->qwEstimatedSize);
707 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal); 701 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal);
708 702
709 fRollback = FALSE; 703 fRollback = FALSE;
@@ -823,7 +817,6 @@ namespace Bootstrapper
823 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1); 817 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1);
824 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 818 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
825 819
826 Assert::Equal(35694ull, pPlan->qwEstimatedSize);
827 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal); 820 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal);
828 821
829 fRollback = FALSE; 822 fRollback = FALSE;
@@ -924,7 +917,6 @@ namespace Bootstrapper
924 dwIndex = 0; 917 dwIndex = 0;
925 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 918 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
926 919
927 Assert::Equal(1463267ull, pPlan->qwEstimatedSize);
928 Assert::Equal(119695ull, pPlan->qwCacheSizeTotal); 920 Assert::Equal(119695ull, pPlan->qwCacheSizeTotal);
929 921
930 fRollback = FALSE; 922 fRollback = FALSE;
@@ -1021,7 +1013,6 @@ namespace Bootstrapper
1021 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1); 1013 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1);
1022 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1014 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1023 1015
1024 Assert::Equal(33743ull, pPlan->qwEstimatedSize);
1025 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal); 1016 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal);
1026 1017
1027 fRollback = FALSE; 1018 fRollback = FALSE;
@@ -1104,7 +1095,6 @@ namespace Bootstrapper
1104 dwIndex = 0; 1095 dwIndex = 0;
1105 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1096 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1106 1097
1107 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1108 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1098 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1109 1099
1110 fRollback = FALSE; 1100 fRollback = FALSE;
@@ -1180,7 +1170,6 @@ namespace Bootstrapper
1180 dwIndex = 0; 1170 dwIndex = 0;
1181 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1171 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1182 1172
1183 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1184 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1173 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1185 1174
1186 fRollback = FALSE; 1175 fRollback = FALSE;
@@ -1273,7 +1262,6 @@ namespace Bootstrapper
1273 dwIndex = 0; 1262 dwIndex = 0;
1274 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1263 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1275 1264
1276 Assert::Equal(35694ull, pPlan->qwEstimatedSize);
1277 Assert::Equal(175674ull, pPlan->qwCacheSizeTotal); 1265 Assert::Equal(175674ull, pPlan->qwCacheSizeTotal);
1278 1266
1279 fRollback = FALSE; 1267 fRollback = FALSE;
@@ -1371,7 +1359,6 @@ namespace Bootstrapper
1371 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1); 1359 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1);
1372 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1360 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1373 1361
1374 Assert::Equal(35694ull, pPlan->qwEstimatedSize);
1375 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal); 1362 Assert::Equal(168715ull, pPlan->qwCacheSizeTotal);
1376 1363
1377 fRollback = FALSE; 1364 fRollback = FALSE;
@@ -1473,7 +1460,6 @@ namespace Bootstrapper
1473 dwIndex = 0; 1460 dwIndex = 0;
1474 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1461 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1475 1462
1476 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1477 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1463 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1478 1464
1479 fRollback = FALSE; 1465 fRollback = FALSE;
@@ -1553,7 +1539,6 @@ namespace Bootstrapper
1553 dwIndex = 0; 1539 dwIndex = 0;
1554 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1540 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1555 1541
1556 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1557 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1542 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1558 1543
1559 fRollback = FALSE; 1544 fRollback = FALSE;
@@ -1649,7 +1634,6 @@ namespace Bootstrapper
1649 dwIndex = 0; 1634 dwIndex = 0;
1650 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1635 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1651 1636
1652 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1653 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1637 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1654 1638
1655 fRollback = FALSE; 1639 fRollback = FALSE;
@@ -1720,7 +1704,6 @@ namespace Bootstrapper
1720 dwIndex = 0; 1704 dwIndex = 0;
1721 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1705 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1722 1706
1723 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1724 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1707 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1725 1708
1726 fRollback = FALSE; 1709 fRollback = FALSE;
@@ -1805,7 +1788,6 @@ namespace Bootstrapper
1805 dwIndex = 0; 1788 dwIndex = 0;
1806 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1789 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1807 1790
1808 Assert::Equal(0ull, pPlan->qwEstimatedSize);
1809 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 1791 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
1810 1792
1811 fRollback = FALSE; 1793 fRollback = FALSE;
@@ -1906,7 +1888,6 @@ namespace Bootstrapper
1906 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1); 1888 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 1);
1907 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1889 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
1908 1890
1909 Assert::Equal(56ull, pPlan->qwEstimatedSize);
1910 Assert::Equal(140ull, pPlan->qwCacheSizeTotal); 1891 Assert::Equal(140ull, pPlan->qwCacheSizeTotal);
1911 1892
1912 fRollback = FALSE; 1893 fRollback = FALSE;
@@ -2005,7 +1986,6 @@ namespace Bootstrapper
2005 dwIndex = 0; 1986 dwIndex = 0;
2006 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 1987 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
2007 1988
2008 Assert::Equal(3055111ull, pPlan->qwEstimatedSize);
2009 Assert::Equal(6130592ull, pPlan->qwCacheSizeTotal); 1989 Assert::Equal(6130592ull, pPlan->qwCacheSizeTotal);
2010 1990
2011 fRollback = FALSE; 1991 fRollback = FALSE;
@@ -2128,7 +2108,6 @@ namespace Bootstrapper
2128 dwIndex = 0; 2108 dwIndex = 0;
2129 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 2109 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
2130 2110
2131 Assert::Equal(0ull, pPlan->qwEstimatedSize);
2132 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 2111 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
2133 2112
2134 fRollback = FALSE; 2113 fRollback = FALSE;
@@ -2245,7 +2224,6 @@ namespace Bootstrapper
2245 dwIndex = 0; 2224 dwIndex = 0;
2246 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 2225 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
2247 2226
2248 Assert::Equal(0ull, pPlan->qwEstimatedSize);
2249 Assert::Equal(0ull, pPlan->qwCacheSizeTotal); 2227 Assert::Equal(0ull, pPlan->qwCacheSizeTotal);
2250 2228
2251 fRollback = FALSE; 2229 fRollback = FALSE;
@@ -2351,7 +2329,6 @@ namespace Bootstrapper
2351 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 4); 2329 ValidateCacheCheckpoint(pPlan, fRollback, dwIndex++, 4);
2352 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions); 2330 Assert::Equal(dwIndex, pPlan->cRollbackCacheActions);
2353 2331
2354 Assert::Equal(2993671ull, pPlan->qwEstimatedSize);
2355 Assert::Equal(6048672ull, pPlan->qwCacheSizeTotal); 2332 Assert::Equal(6048672ull, pPlan->qwCacheSizeTotal);
2356 2333
2357 fRollback = FALSE; 2334 fRollback = FALSE;
@@ -2451,6 +2428,8 @@ namespace Bootstrapper
2451 ReleaseStr(sczFilePath); 2428 ReleaseStr(sczFilePath);
2452 } 2429 }
2453 2430
2431 pEngineState->section.qwBundleSize = 1234;
2432
2454 hr = CoreInitializeConstants(pEngineState); 2433 hr = CoreInitializeConstants(pEngineState);
2455 NativeAssert::Succeeded(hr, "Failed to initialize core constants"); 2434 NativeAssert::Succeeded(hr, "Failed to initialize core constants");
2456 2435