Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
47 changes: 0 additions & 47 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2627,53 +2627,6 @@ def test_pthread_run_on_main_thread(self):
def test_tcgetattr(self):
self.do_runf('termios/test_tcgetattr.c', 'success')

@also_with_standalone_wasm()
def test_time(self):
self.do_core_test('test_time.c')

@parameterized({
'1': ('EST+05EDT',),
'2': ('UTC+0',),
'3': ('CET',),
})
def test_time_tz(self, tz):
print('testing with TZ=%s' % tz)
with env_modify({'TZ': tz}):
# Run the test with different time zone settings if
# possible. It seems that the TZ environment variable does not
# work all the time (at least it's not well respected by
# Node.js on Windows), but it does no harm either.
self.do_core_test('test_time.c')

def test_timeb(self):
# Confirms they are called in reverse order
self.do_core_test('test_timeb.c')

def test_time_c(self):
self.do_core_test('test_time_c.c')

def test_gmtime(self):
self.do_core_test('test_gmtime.c')

@also_with_standalone_wasm()
def test_strptime_tm(self):
if self.get_setting('STANDALONE_WASM'):
self.emcc_args += ['-DSTANDALONE']
self.do_core_test('test_strptime_tm.c')

def test_strptime_days(self):
self.do_core_test('test_strptime_days.c')

@also_with_standalone_wasm()
def test_strptime_reentrant(self):
if self.get_setting('STANDALONE_WASM'):
self.emcc_args += ['-DSTANDALONE']
self.do_core_test('test_strptime_reentrant.c')

@crossplatform
def test_strftime(self):
self.do_core_test('test_strftime.c')

def test_trickystring(self):
self.do_core_test('test_trickystring.c')

Expand Down
47 changes: 47 additions & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -6044,6 +6044,53 @@ def test_force_stdlibs(self):
# See https://github.com/emscripten-core/emscripten/issues/22161
self.do_runf('hello_world.c', emcc_args=['-sWASM_BIGINT'])

@also_with_standalone_wasm()
def test_time(self):
self.do_other_test('test_time.c')

@parameterized({
'1': ('EST+05EDT',),
'2': ('UTC+0',),
'3': ('CET',),
})
def test_time_tz(self, tz):
print('testing with TZ=%s' % tz)
with env_modify({'TZ': tz}):
# Run the test with different time zone settings if
# possible. It seems that the TZ environment variable does not
# work all the time (at least it's not well respected by
# Node.js on Windows), but it does no harm either.
self.do_other_test('test_time.c')

def test_timeb(self):
# Confirms they are called in reverse order
self.do_other_test('test_timeb.c')

def test_time_c(self):
self.do_other_test('test_time_c.c')

def test_gmtime(self):
self.do_other_test('test_gmtime.c')

@also_with_standalone_wasm()
def test_strptime_tm(self):
if self.get_setting('STANDALONE_WASM'):
self.emcc_args += ['-DSTANDALONE']
self.do_other_test('test_strptime_tm.c')

def test_strptime_days(self):
self.do_other_test('test_strptime_days.c')

@also_with_standalone_wasm()
def test_strptime_reentrant(self):
if self.get_setting('STANDALONE_WASM'):
self.emcc_args += ['-DSTANDALONE']
self.do_other_test('test_strptime_reentrant.c')

@crossplatform
def test_strftime(self):
self.do_other_test('test_strftime.c')

@crossplatform
def test_strftime_zZ(self):
if MACOS:
Expand Down
Loading