test skeleton Re: StgIsStorageFile

Greg Turner gmturner007 at ameritech.net
Fri Nov 15 20:06:24 CST 2002


On Friday 15 November 2002 02:29 am, Ryan Cumming wrote:
> On a side note, I made a pretty nice testcase for this, but there
> seems to be no dlls/ole32/tests directory.

Ask and ye shall receive.  

Brian -- this should be a better guideline than my previous attempt
(which had some deficiencies, rectified by Alexandre before
going into CVS) if you want to note that in WWN.

human-readable parts are inlined after my .sig, although
to use this abridged version of the patch you'll need to run
(and have) "autoconf" after applying.

LICENSE: X11

CHANGELOG:

* configure, configure.ac;
  dlls/ole32: Makefile.in;
  dlls/ole32/tests (new dir): .cvsignore (new), Makefile.in (new),
    storage.c (new):
  Greg Turner <gmturner007 at ameritech.net>
- Skeleton for ole32 test directory, with storage unit test.

-- 
gmt

"War is an ugly thing, but not the ugliest of things;
the decayed and degraded state of moral and patriotic
feeling which thinks that nothing is worth war is much
worse. A man who has nothing for which he is willing
to fight; nothing he cares about more than his own
personal safety; is a miserable creature who has no
chance of being free, unless made and kept so by the
exertions of better persons than himself."

-- John Stuart Mill

diff -ur -x CVS -x 'bigdif*' ../wine.test/configure.ac ./configure.ac
--- ../wine.test/configure.ac	2002-11-15 07:26:54.000000000 -0600
+++ ./configure.ac	2002-11-15 19:23:57.000000000 -0600
@@ -1434,6 +1434,7 @@
 dlls/ntdll/tests/Makefile
 dlls/odbc32/Makefile
 dlls/ole32/Makefile
+dlls/ole32/tests/Makefile
 dlls/oleaut32/Makefile
 dlls/oleaut32/tests/Makefile
 dlls/olecli/Makefile
diff -ur -x CVS -x 'bigdif*' ../wine.test/dlls/ole32/Makefile.in ./dlls/ole32/Makefile.in
--- ../wine.test/dlls/ole32/Makefile.in	2002-10-18 21:11:58.000000000 -0500
+++ ./dlls/ole32/Makefile.in	2002-11-15 19:22:31.000000000 -0600
@@ -44,6 +44,8 @@
 
 RC_SRCS = ole32res.rc
 
+SUBDIRS = tests
+
 @MAKE_DLL_RULES@
 
 ### Dependencies:
--- /dev/null	1969-12-31 18:00:00.000000000 -0600
+++ ./dlls/ole32/tests/.cvsignore	2002-11-15 19:28:23.000000000 -0600
@@ -0,0 +1,4 @@
+Makefile
+storage.ok
+ole32_test.exe.spec.c
+testlist.c
--- /dev/null	1969-12-31 18:00:00.000000000 -0600
+++ ./dlls/ole32/tests/Makefile.in	2002-11-15 19:32:55.000000000 -0600
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+TESTDLL   = ole32.dll
+IMPORTS   = ole32
+
+CTESTS = \
+	storage.c
+
+ at MAKE_TEST_RULES@
+
+### Dependencies:
--- /dev/null	1969-12-31 18:00:00.000000000 -0600
+++ ./dlls/ole32/tests/storage.c	2002-11-15 19:32:31.000000000 -0600
@@ -0,0 +1,34 @@
+/*
+ * Unit test suite for ole32 Stg functions
+ *
+ * Copyright 2002 Ryan Cumming
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#include "wine/test.h"
+#include <winbase.h>
+#include <winnt.h>
+#include <winerror.h>
+
+void StorageTest(void) {
+  ok( (TRUE), "Placeholder" );
+}
+
+START_TEST( storage )
+{
+    trace ( " ** Storage Tests **\n" );
+    StorageTest();
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stg_test_skel.diff
Type: text/x-diff
Size: 13784 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021115/05d6932f/stg_test_skel.bin


More information about the wine-patches mailing list