[niepce] Issue #31 - Fix test breakage
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce] Issue #31 - Fix test breakage
- Date: Sat, 17 Nov 2018 06:21:48 +0000 (UTC)
commit 46c95fe0bdfb17fe92eca6a2017b88864e8ada00
Author: Hubert Figuière <hub figuiere net>
Date: Fri Nov 16 23:51:31 2018 -0500
Issue #31 - Fix test breakage
https://gitlab.gnome.org/GNOME/niepce/issues/31
src/Makefile.am | 1 -
src/fwk/utils/t/testfiles.cpp | 7 ++++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 696052b..93306b0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,7 +39,6 @@ RUST_SOURCES = \
@top_srcdir@/src/lib.rs \
@top_srcdir@/src/libraryclient/clientimpl.rs \
@top_srcdir@/src/libraryclient/clientinterface.rs \
- @top_srcdir@/src/libraryclient/libraryclient.rs \
@top_srcdir@/src/libraryclient/mod.rs \
@top_srcdir@/src/niepce/mod.rs \
@top_srcdir@/src/niepce/ui/mod.rs \
diff --git a/src/fwk/utils/t/testfiles.cpp b/src/fwk/utils/t/testfiles.cpp
index be91ba6..d806d6a 100644
--- a/src/fwk/utils/t/testfiles.cpp
+++ b/src/fwk/utils/t/testfiles.cpp
@@ -28,10 +28,15 @@
using fwk::FileList;
// stub to avoid linking the Rust library.
-extern "C"
+extern "C" {
void niepce_init()
{
}
+bool file_is_media(GFileInfo *)
+{
+ return false;
+}
+}
TEST(testFiles, testFilesSanity)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]