Skip to content

Commit cbb9ba8

Browse files
committed
Remove check for env module in test
1 parent 267b63e commit cbb9ba8

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/shims/time.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
140140
// Convert that to local time, then return the broken-down time value.
141141
let dt: DateTime<Local> = DateTime::from(dt_utc);
142142

143-
// TODO: put review comment for this.
144-
145143
// This value is always set to -1, because there is no way to know if dst is in effect with
146144
// chrono crate yet.
147145
// This may not be consistent with libc::localtime_r's result.

tests/pass-dep/shims/libc-misc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ fn test_localtime_r() {
220220
// Set timezone to GMT.
221221
let key = "TZ";
222222
env::set_var(key, "GMT");
223-
assert_eq!(env::var(key), Ok("GMT".to_string()));
224223

225224
const TIME_SINCE_EPOCH: libc::time_t = 1712475836;
226225
let custom_time_ptr = &TIME_SINCE_EPOCH;
@@ -270,7 +269,6 @@ fn test_localtime_r() {
270269

271270
//Remove timezone setting.
272271
env::remove_var(key);
273-
assert!(env::var(key).is_err());
274272
}
275273

276274
fn test_isatty() {

0 commit comments

Comments
 (0)