summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/mkmf/test_framework.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mkmf/test_framework.rb b/test/mkmf/test_framework.rb
index eb29c6b..ba15299 100644
--- a/test/mkmf/test_framework.rb
+++ b/test/mkmf/test_framework.rb
@@ -10,7 +10,7 @@ class TestMkmf
FileUtils.mkdir_p(hdrdir)
File.write("#{hdrdir}/#{hdrname}", "")
src = "#{fwdir}/main.c"
- File.write(src, "void #{fw}(void) {}")
+ File.write(src, "void #{fw}(void) {}\n")
cmd = LINK_SO.dup
RbConfig.expand(cmd, RbConfig::CONFIG.merge("OBJS"=>src))
cmd.gsub!("$@", "#{fwdir}/#{fw}")