add the syscall and create a test

This commit is contained in:
Mackenzie Clark
2019-02-22 12:32:14 -08:00
parent c9969f269c
commit ad3d361f76
6 changed files with 44 additions and 0 deletions

10
lib/emscripten/emtests/test_getcwd.c vendored Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <unistd.h>
int main() {
const unsigned int size = 256;
char cwd[size] = {};
char* buf = getcwd(cwd, size);
printf("getcwd\n");
return 0;
}

View File

@ -0,0 +1 @@
getcwd

BIN
lib/emscripten/emtests/test_getcwd.wasm vendored Normal file

Binary file not shown.