]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/path.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / path.rs
index ea3fcd8ce28597df108ef63dd077a81c4245240f..4048bc4da2557f0434c33bd9ef8aca9c90a972b1 100644 (file)
@@ -3801,7 +3801,7 @@ macro_rules! tp(
             });
         );
 
-        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 @@ macro_rules! tfn(
         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");