From 1e8b9112f0ca6fbefda654e9d9b707b1ff0d86e2 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Wed, 10 Apr 2002 07:18:40 +0000 Subject: [PATCH] fix some warnings in the makefile and added a time_t test svn path=/trunk/; revision=2834 --- reactos/apps/tests/test_old/makefile | 7 +++++-- reactos/apps/tests/test_old/time_t.c | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 reactos/apps/tests/test_old/time_t.c diff --git a/reactos/apps/tests/test_old/makefile b/reactos/apps/tests/test_old/makefile index 45a68adaba9..8f69cac0faf 100644 --- a/reactos/apps/tests/test_old/makefile +++ b/reactos/apps/tests/test_old/makefile @@ -4,7 +4,7 @@ PATH_TO_TOP = ../.. PROGS= test-stdio tst-printf tstdiomisc bug2 bug3 \ - temptest test-fseek test_rdwr testfsd + temptest test-fseek test_rdwr testfsd time_t all: $(PROGS:%=%.exe) @@ -20,7 +20,6 @@ clean: install: # $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe) $(PROGS:%=$(FLOPPY_DIR)/apps/%.exe): $(FLOPPY_DIR)/apps/%.exe: %.exe - $(CP) $*.exe $(FLOPPY_DIR)/apps/$*.exe dist: $(PROGS:%=$(DIST_DIR)/apps/%.exe) @@ -67,4 +66,8 @@ testfsd.exe: testfsd.c testsuite.c $(CC) testfsd.c testsuite.c -lkernel32 -o testfsd.exe $(NM) --numeric-sort testfsd.exe > testfsd.sym +time_t.exe: time_t.c + $(CC) time_t.c -lkernel32 -o time_t.exe + $(NM) --numeric-sort time_t.exe > time_t.sym + include ../../rules.mak diff --git a/reactos/apps/tests/test_old/time_t.c b/reactos/apps/tests/test_old/time_t.c new file mode 100644 index 00000000000..63353556e3d --- /dev/null +++ b/reactos/apps/tests/test_old/time_t.c @@ -0,0 +1,12 @@ +#include +#include + +int main(void) +{ + struct tm *ptr; + time_t lt; + + lt = time(NULL); + ptr = localtime(<); + printf(asctime(ptr)); +} \ No newline at end of file -- 2.17.1