diff options
Diffstat (limited to 'tests/realtimeGC')
-rw-r--r-- | tests/realtimeGC/cmain.c | 2 | ||||
-rw-r--r-- | tests/realtimeGC/readme.txt | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/realtimeGC/cmain.c b/tests/realtimeGC/cmain.c index e9a46d7ce..0d4bb096a 100644 --- a/tests/realtimeGC/cmain.c +++ b/tests/realtimeGC/cmain.c @@ -1,8 +1,8 @@ - #ifdef WIN #include <windows.h> #else #include <dlfcn.h> +#include <unistd.h> /* for sleep(3) */ #endif #include <stdio.h> #include <stdlib.h> diff --git a/tests/realtimeGC/readme.txt b/tests/realtimeGC/readme.txt index 17e18a5e5..b2e37a1f0 100644 --- a/tests/realtimeGC/readme.txt +++ b/tests/realtimeGC/readme.txt @@ -1,21 +1,21 @@ Test the realtime GC without linking nimrtl.dll/so. Note, this is a long running test, default is 35 minutes. To change the -the run time see RUNTIME in main.nim and main.c. +the run time see RUNTIME in nmain.nim and cmain.c. -You can build shared.nim, main.nim, and main.c by running make (nix systems) -or maike.bat (Windows systems). They both assume GCC and that it's in your -path. Output: shared.(dll/so), camin(.exe), nmain(.exe). +You can build shared.nim, nmain.nim, and cmain.c by running make (nix systems) +or make.bat (Windows systems). They both assume GCC and that it's in your +path. Output: shared.(dll/so), cmain(.exe), nmain(.exe). To run the test: execute either nmain or cmain in a shell window. -To build buy hand: +To build by hand: - build the shared object (shared.nim): - $ nim c shared.nim + $ nim c tests/realtimeGC/shared.nim - build the client executables: - $ nim c -o:nmain main.nim - $ gcc -o cmain main.c -ldl + $ nim c --threads:on tests/realtimeGC/nmain.nim + $ gcc -o tests/realtimeGC/cmain tests/realtimeGC/cmain.c -ldl |