summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-04-13 21:05:08 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-04-13 21:05:08 +0000
commitfb55f0056ea77efedcc51fe83552efcaf9ac3e93 (patch)
treed666ec8f6d34a1c3e2c0b6eea8ff232b3df83ae7 /tests
parent3aa65d30eb2dfeb63956a38ec9c5296477712888 (diff)
downloadglib-fb55f0056ea77efedcc51fe83552efcaf9ac3e93.tar.gz
Mention the tests directory.
* README.win32: Mention the tests directory. * glib.def: Add the functions from grand.c. * glibconfig.h.win32: Add unsigned max values, and the format strings. * makefile.msc: Add grand. * tests/{date-test,node-test}.c: Include <stdlib.h> for exit(). * tests/makefile.msc: New file.
Diffstat (limited to 'tests')
-rw-r--r--tests/date-test.c1
-rw-r--r--tests/makefile.msc54
-rw-r--r--tests/node-test.c1
3 files changed, 56 insertions, 0 deletions
diff --git a/tests/date-test.c b/tests/date-test.c
index 6dc0f570f..e181edd5d 100644
--- a/tests/date-test.c
+++ b/tests/date-test.c
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include <locale.h>
#include <time.h>
diff --git a/tests/makefile.msc b/tests/makefile.msc
new file mode 100644
index 000000000..56a9210de
--- /dev/null
+++ b/tests/makefile.msc
@@ -0,0 +1,54 @@
+## Makefile for building the GLib test programs with Microsoft C
+## Use: nmake -f makefile.msc all
+
+################################################################
+
+# Nothing much configurable below
+
+# cl -? described the options
+CC = cl -G5 -GF -Ox -W3 -MD -nologo
+
+# No general LDFLAGS needes
+LDFLAGS = /link
+INSTALL = copy
+
+GLIB_VER = 1.3
+
+CFLAGS = -I.. -DHAVE_CONFIG_H
+
+TESTS = \
+ array-test.exe \
+ date-test.exe \
+ dirname-test.exe\
+ hash-test.exe \
+ list-test.exe \
+ node-test.exe \
+ queue-test.exe \
+ rand-test.exe \
+ relation-test.exe\
+ slist-test.exe \
+ stack-test.exe \
+ string-test.exe \
+ strfunc-test.exe\
+ tree-test.exe \
+ type-test.exe
+
+all : $(TESTS)
+
+.c.exe :
+ $(CC) $(CFLAGS) -c $<
+ $(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
+
+check: all
+ for %p in ($(TESTS)) do %p
+
+clean:
+ del *.exe
+ del *.obj
+ del *.dll
+ del *.lib
+ del *.err
+ del *.map
+ del *.sym
+ del *.exp
+ del *.pdb
diff --git a/tests/node-test.c b/tests/node-test.c
index 087568791..381366641 100644
--- a/tests/node-test.c
+++ b/tests/node-test.c
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>