1
Fork 0

SGX target: fix std unit tests

This commit is contained in:
Jethro Beekman 2019-03-12 10:58:30 -07:00
parent 2c8bbf50db
commit f229422cc1
27 changed files with 236 additions and 94 deletions

View file

@ -3801,7 +3801,7 @@ mod tests {
});
);
if cfg!(unix) {
if cfg!(unix) || cfg!(all(target_env = "sgx", target_vendor = "fortanix")) {
tp!("", "foo", "foo");
tp!("foo", "bar", "foo/bar");
tp!("foo/", "bar", "foo/bar");
@ -3960,7 +3960,7 @@ mod tests {
tfn!("foo", "bar", "bar");
tfn!("foo", "", "");
tfn!("", "foo", "foo");
if cfg!(unix) {
if cfg!(unix) || cfg!(all(target_env = "sgx", target_vendor = "fortanix")) {
tfn!(".", "foo", "./foo");
tfn!("foo/", "bar", "bar");
tfn!("foo/.", "bar", "bar");