From 40266a4203c86d5a85dfaf9e471b7b8d54033bec Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Fri, 26 Apr 2013 00:53:39 +0200
Subject: fix fontconfig test

---
 tests/fontconfig_conf_reading.tex | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'tests/fontconfig_conf_reading.tex')

diff --git a/tests/fontconfig_conf_reading.tex b/tests/fontconfig_conf_reading.tex
index dbbbc3c..7ffda02 100644
--- a/tests/fontconfig_conf_reading.tex
+++ b/tests/fontconfig_conf_reading.tex
@@ -1,6 +1,9 @@
 \directlua{
 require("lualibs")
 require("otfl-font-nms.lua")
-texio.write_nl(table.serialize(fonts.names.read_fonts_conf("fonts.conf.test", {})))
+local res = fonts.names.read_fonts_conf("fonts.conf.test", {}, {})
+if res then
+  texio.write_nl(table.serialize(res))
+end
 }
 \bye
-- 
cgit v1.2.3

