lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6257] Expunge a temporary test that has served its purpos


From: Greg Chicares
Subject: [lmi-commits] [6257] Expunge a temporary test that has served its purpose
Date: Tue, 18 Aug 2015 18:40:16 +0000

Revision: 6257
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6257
Author:   chicares
Date:     2015-08-18 18:40:15 +0000 (Tue, 18 Aug 2015)
Log Message:
-----------
Expunge a temporary test that has served its purpose

Modified Paths:
--------------
    lmi/trunk/workhorse.make

Removed Paths:
-------------
    lmi/trunk/wx_pdfdoc_test.cpp

Modified: lmi/trunk/workhorse.make
===================================================================
--- lmi/trunk/workhorse.make    2015-08-16 15:42:49 UTC (rev 6256)
+++ lmi/trunk/workhorse.make    2015-08-18 18:40:15 UTC (rev 6257)
@@ -862,12 +862,6 @@
 
 wx_new$(SHREXT): wx_new.o
 
-# 'wx_pdfdoc_test' is a temporary test that will be removed when lmi
-# uses wxPdfDoc, and an operation that uses it is added to 'wx_test'.
-#
-wx_pdfdoc_test$(EXEEXT): EXTRA_LDFLAGS := $(wx_pdfdoc_ldflags) $(wx_ldflags)
-wx_pdfdoc_test$(EXEEXT): $(common_test_objects) wx_pdfdoc_test.o
-
 wx_test$(EXEEXT): lmi_so_attributes := -DLMI_USE_SO
 wx_test$(EXEEXT): EXTRA_LDFLAGS := $(wx_ldflags)
 wx_test$(EXEEXT): $(wx_test_objects) skeleton$(SHREXT) liblmi$(SHREXT)

Deleted: lmi/trunk/wx_pdfdoc_test.cpp
===================================================================
--- lmi/trunk/wx_pdfdoc_test.cpp        2015-08-16 15:42:49 UTC (rev 6256)
+++ lmi/trunk/wx_pdfdoc_test.cpp        2015-08-18 18:40:15 UTC (rev 6257)
@@ -1,55 +0,0 @@
-// wxPdfDocument library unit test.
-//
-// Copyright (C) 2015 Gregory W. Chicares.
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 2 as
-// published by the Free Software Foundation.
-//
-// This program 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 General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software Foundation,
-// Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-//
-// http://savannah.nongnu.org/projects/lmi
-// email: <address@hidden>
-// snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
-
-// $Id$
-
-// This unit test checks that linking with wxPdfDocument library and
-// generating the simplest possible document with it works.
-
-#ifdef __BORLANDC__
-#   include "pchfile.hpp"
-#   pragma hdrstop
-#endif
-
-#include "platform_dependent.hpp"       // access()
-#include "test_tools.hpp"
-
-#include <wx/pdfdoc.h>
-
-#include <wx/init.h>
-
-int test_main(int argc, char* argv[])
-{
-    wxInitializer init(argc, argv);
-    BOOST_TEST( init );
-
-    wxPdfDocument pdf_doc(wxLANDSCAPE, "pt", wxPAPER_LETTER);
-    pdf_doc.AddPage();
-    pdf_doc.SetFont("Helvetica", "", 16);
-    pdf_doc.Text(20, 20, "Hello PDF!");
-
-    char const* const p = "/tmp/eraseme.pdf";
-    pdf_doc.SaveAsFile(p);
-    BOOST_TEST_EQUAL(0, access(p, R_OK));
-    BOOST_TEST(0 == std::remove(p));
-
-    return 0;
-}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]