Skip to content

Commit a57bca0

Browse files
committed
[test] Remove some unnecessary usage of TOTAL_MEMORY and INITIAL_MEMORY. NFC
1 parent 833448b commit a57bca0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_browser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,17 +3880,17 @@ def prep_no_SAB(self):
38803880
@requires_threads
38813881
def test_pthread_c11_threads(self):
38823882
self.btest_exit('pthread/test_pthread_c11_threads.c',
3883-
args=['-gsource-map', '-std=gnu11', '-pthread', '-sPROXY_TO_PTHREAD', '-sTOTAL_MEMORY=64mb'])
3883+
args=['-gsource-map', '-std=gnu11', '-pthread', '-sPROXY_TO_PTHREAD'])
38843884

38853885
@requires_threads
38863886
def test_pthread_pool_size_strict(self):
38873887
# Check that it doesn't fail with sufficient number of threads in the pool.
38883888
self.btest_exit('pthread/test_pthread_c11_threads.c',
3889-
args=['-g2', '-std=gnu11', '-pthread', '-sPTHREAD_POOL_SIZE=4', '-sPTHREAD_POOL_SIZE_STRICT=2', '-sTOTAL_MEMORY=64mb'])
3889+
args=['-g2', '-std=gnu11', '-pthread', '-sPTHREAD_POOL_SIZE=4', '-sPTHREAD_POOL_SIZE_STRICT=2'])
38903890
# Check that it fails instead of deadlocking on insufficient number of threads in the pool.
38913891
self.btest('pthread/test_pthread_c11_threads.c',
38923892
expected='abort:Assertion failed: thrd_create(&t4, thread_main, NULL) == thrd_success',
3893-
args=['-g2', '-std=gnu11', '-pthread', '-sPTHREAD_POOL_SIZE=3', '-sPTHREAD_POOL_SIZE_STRICT=2', '-sTOTAL_MEMORY=64mb'])
3893+
args=['-g2', '-std=gnu11', '-pthread', '-sPTHREAD_POOL_SIZE=3', '-sPTHREAD_POOL_SIZE_STRICT=2'])
38943894

38953895
@requires_threads
38963896
def test_pthread_in_pthread_pool_size_strict(self):
@@ -3911,7 +3911,7 @@ def test_pthread_atomics(self, args):
39113911
# Test 64-bit atomics.
39123912
@requires_threads
39133913
def test_pthread_64bit_atomics(self):
3914-
self.btest_exit('pthread/test_pthread_64bit_atomics.c', args=['-sINITIAL_MEMORY=64MB', '-O3', '-pthread', '-sPTHREAD_POOL_SIZE=8'])
3914+
self.btest_exit('pthread/test_pthread_64bit_atomics.c', args=['-O3', '-pthread', '-sPTHREAD_POOL_SIZE=8'])
39153915

39163916
# Test 64-bit C++11 atomics.
39173917
@parameterized({
@@ -4233,7 +4233,7 @@ def test_pthread_proxying_in_futex_wait(self):
42334233
def test_pthread_sbrk(self, args):
42344234
# With aborting malloc = 1, test allocating memory in threads
42354235
# With aborting malloc = 0, allocate so much memory in threads that some of the allocations fail.
4236-
self.btest_exit('pthread/test_pthread_sbrk.cpp', args=['-O3', '-pthread', '-sPTHREAD_POOL_SIZE=8', '-sINITIAL_MEMORY=128MB'] + args)
4236+
self.btest_exit('pthread/test_pthread_sbrk.cpp', args=['-O3', '-pthread', '-sPTHREAD_POOL_SIZE=8'] + args)
42374237

42384238
# Test that -sABORTING_MALLOC=0 works in both pthreads and non-pthreads
42394239
# builds. (sbrk fails gracefully)

0 commit comments

Comments
 (0)