summaryrefslogtreecommitdiff
path: root/tests/giomm_ioerror
Commit message (Collapse)AuthorAgeFilesLines
* Derive Glib::Error from std::exception, remove Glib::ExceptionKjell Ahlstedt2019-12-141-2/+2
| | | | | | Glib::Error::what() returns const char* (was Glib::ustring). It overrides std::exception::what() that returns const char* and is noexcept. Fixes #23
* Run clang-format on tests.Murray Cumming2016-02-261-20/+20
|
* C++11: examples/tests: More use of auto.Murray Cumming2015-07-151-2/+2
|
* Make giomm tests Run Under WindowsChun-wei Fan2014-09-171-1/+7
| | | | | | | | | | | | | | | /etc/fstab is a *nix only file, which would not normally exist under Windows unless one is under Cygwin. Use the path for the Wordpad application on Windows, which is a standard part of Windows; and use /etc/fstab otherwise. * tests/giomm_ioerror/main.cc: * tests/giomm_simple/main.cc: Test for c:/windows/write.exe (Wordpad application) on Windows, and use /etc/fstab otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=736778 https://bugzilla.gnome.org/show_bug.cgi?id=736778
* tests: Remove remaining use of std::cout.Murray Cumming2011-02-241-1/+8
| | | | | | * tests/giomm_ioerror/main.cc: * tests/giomm_simple/main.cc: Hid some use of std::cout that I missed in my previous commit.
* tests: Use EXIT_* for clarity.Murray Cumming2011-02-241-1/+1
| | | | * tests/*.cc: Use EXIT_SUCCESS rather than 0 because I think that is clearer.
* Actually run all tests, and check some failures.Murray Cumming2011-02-241-1/+11
| | | | | | | | | | | | | | | | | | | * tests/Makefile.am: Add all tests to TESTS so they are really run during make check, instead of just built. * tests/giomm_asyncresult_sourceobject/main.cc: * tests/giomm_ioerror/main.cc: * tests/giomm_simple/main.cc: * tests/glibmm_bool_arrayhandle/main.cc: * tests/glibmm_bool_vector/main.cc: * tests/glibmm_buildfilename/main.cc: * tests/glibmm_date/main.cc: * tests/glibmm_ustring_compose/main.cc: * tests/glibmm_valuearray/main.cc: * tests/glibmm_variant/main.cc: * tests/glibmm_vector/main.cc: Remove all use of std::cout by default, allowing it to be renabled by changing a line. Return (or) exit with EXIT_FAILURE after any use of std::cerr, so that make check can report it.
* Remove the reduced API options and code, as discussed on mailing list.Murray Cumming2010-05-311-32/+0
| | | | | | | | | * configure.ac: Removed the --enable-api-exceptions, --enable-api-properties, --enable-api-vfuncs and --enable-api-default-signal-handlers options. * build/reduced.m4: Removed. * tools/m4/*.m4: * tools/pm/Output.pm: Remove any use of ifdefs and auto_ptr for reduced API. * *.[hg|ccg|h|cc]: Remove the idefed code.
* Convert tests/ sub-tree to non-recursive buildDaniel Elstner2009-08-091-7/+0
| | | | | | | | | | * tests/Makefile.am: Rewrite to a non-recursive build of all test programs with a single control file. Hook the the build of the test programs to the make check target. * tests/Makefile.am_fragment: Delete obsolete file. * tests/*/Makefile.am: Delete obsolete files. * configure.ac (AC_CONFIG_FILES): Remove tests/*/Makefile output files from the list.
* Omit unused parameter names to avoid warningDaniel Elstner2009-06-241-1/+1
| | | | | | | | * tools/extra_defs_gen/generate_defs_gio.cc (main): Omit names of unused function parameters, to fix the build with fatal warnings enabled. * examples/properties/properties_example.cc (main): ditto, * tests/giomm_ioerror/main.cc (main): ditto.
* Fix --disable-api-exceptions buildDaniel Elstner2009-03-231-4/+34
| | | | | | | | | | | | | | | * glib/src/keyfile.{ccg,hg}: Conditionalize all exception-handling code in order to fix the build with --disable-api-exceptions. * glib/src/regex.hg: ditto, * gio/src/appinfo.ccg: ditto, * gio/src/file.{ccg,hg}: ditto, * gio/src/outputstream.ccg: ditto, * examples/keyfile/main.cc: ditto, * examples/regex/main.cc: ditto, * tests/giomm_ioerror/main.cc: ditto, * tests/giomm_simple/main.cc: ditto. svn path=/trunk/; revision=803
* Fix tests to use standard filenamesJonathon Jongsma2008-12-131-1/+1
| | | | svn path=/trunk/; revision=761
* Add a workaround for the HOST_NOT_FOUND symbol conflictsJonathon Jongsma2008-10-051-0/+12
| | | | | | | As suggested by Szilárd Pfeiffer in Bug #529496 * tests/giomm_ioerror/main.cc: add a test for this svn path=/trunk/; revision=735
* Added the drive_eject_button signal.Murray Cumming2008-07-252-0/+57
2008-07-25 Murray Cumming <murrayc@murrayc.com> * gio/src/volumemonitor.hg: Added the drive_eject_button signal. 2008-07-25 Murray Cumming <murrayc@murrayc.com> * gio/src/gio_enums.defs: Hacked in a replacement enum for Gio::Error::HOST_NOT_FOUND as Gio::Error::HOST_WAS_NOT_FOUND, to avoid a clash with a netdb.h define. Bug #529496. * configure.in: * tests/Makefile.am: * tests/giomm_ioerror/Makefile.am: * tests/giomm_ioerror/main.cc: Added a test to make sure that our hacked-in enum value stays hacked in. svn path=/trunk/; revision=695