@@ -81,15 +81,7 @@ void test_reading_existing_symlinks() {
81
81
continue ;
82
82
}
83
83
84
- // WASMFS behaves the same as Linux (and as best as I can tell, the spec),
85
- // seeing the symlink as a string. The old JS FS instead normalizes it and
86
- // returns something modified.
87
- // The same happens in the assertions below.
88
- #if !defined(__EMSCRIPTEN__ ) || defined(WASMFS )
89
84
assert (strcmp (buffer , "../test/../there!" ) == 0 );
90
- #else
91
- assert (strcmp (buffer , "/there!" ) == 0 );
92
- #endif
93
85
assert (strlen (buffer ) == rtn );
94
86
errno = 0 ;
95
87
}
@@ -111,11 +103,7 @@ void test_creating_symlink() {
111
103
char buffer [256 ] = {0 };
112
104
rtn = readlink ("directory/link" , buffer , 256 );
113
105
assert (errno == 0 );
114
- #if !defined(__EMSCRIPTEN__ ) || defined(WASMFS )
115
106
assert (strcmp (buffer , "new-nonexistent-path" ) == 0 );
116
- #else
117
- assert (strcmp (buffer , "/working/directory/new-nonexistent-path" ) == 0 );
118
- #endif
119
107
assert (strlen (buffer ) == rtn );
120
108
errno = 0 ;
121
109
}
@@ -127,11 +115,7 @@ void test_reading_shortened_symlink() {
127
115
int rtn = readlink ("link" , buffer , 4 );
128
116
assert (errno == 0 );
129
117
assert (rtn == 4 );
130
- #if !defined(__EMSCRIPTEN__ ) || defined(WASMFS )
131
118
assert (strcmp (buffer , "../t**nexistent-path" ) == 0 );
132
- #else
133
- assert (strcmp (buffer , "/the**ng/directory/new-nonexistent-path" ) == 0 );
134
- #endif
135
119
errno = 0 ;
136
120
}
137
121
0 commit comments