mirror of https://github.com/WebAssembly/wasi-sdk
This adds basic support for environment variables to the test harness, and adds a simple test. This tests the bug found in https://github.com/CraneStation/wasi-libc/pull/159.pull/97/head
parent
677ffc715c
commit
51abbf27ae
@ -0,0 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("HELLO = %s\n", getenv("HELLO"));
|
||||
return 0;
|
||||
}
|
@ -0,0 +1 @@
|
||||
HELLO = (null)
|
@ -0,0 +1,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("HELLO = %s\n", getenv("HELLO"));
|
||||
return 0;
|
||||
}
|
@ -0,0 +1 @@
|
||||
HELLO=hello
|
@ -0,0 +1 @@
|
||||
HELLO = hello
|
Loading…
Reference in new issue