mfabik / rpms / satyr

Forked from rpms/satyr 3 years ago
Clone

Blame SOURCES/satyr-0.13-tests-fix-failure-on-gcc5-on-x86_64.patch

1275dc
From c1e7562809a1ea9955d43bc21fa2b2ac88d95ee5 Mon Sep 17 00:00:00 2001
1275dc
From: Martin Milata <mmilata@redhat.com>
1275dc
Date: Fri, 20 Feb 2015 15:50:32 +0100
1275dc
Subject: [PATCH] tests: fix failure on gcc5 on x86_64
1275dc
1275dc
Resolves #1334604
1275dc
1275dc
Signed-off-by: Martin Milata <mmilata@redhat.com>
1275dc
---
1275dc
 tests/ruby_stacktrace.at | 6 ++++--
1275dc
 1 file changed, 4 insertions(+), 2 deletions(-)
1275dc
1275dc
diff --git a/tests/ruby_stacktrace.at b/tests/ruby_stacktrace.at
1275dc
index 5a2d901..09d5638 100644
1275dc
--- a/tests/ruby_stacktrace.at
1275dc
+++ b/tests/ruby_stacktrace.at
1275dc
@@ -261,6 +261,7 @@ main(void)
1275dc
 
1275dc
 AT_TESTFUN([sr_ruby_stacktrace_from_json],
1275dc
 [[
1275dc
+#include "stacktrace.h"
1275dc
 #include "ruby/stacktrace.h"
1275dc
 #include "ruby/frame.h"
1275dc
 #include "utils.h"
1275dc
@@ -268,13 +269,14 @@ AT_TESTFUN([sr_ruby_stacktrace_from_json],
1275dc
 #include <assert.h>
1275dc
 #include <stdlib.h>
1275dc
 #include <stdio.h>
1275dc
+#include <string.h>
1275dc
 
1275dc
 void
1275dc
 check(char *filename)
1275dc
 {
1275dc
   char *error_message = NULL;
1275dc
-  const char *file_contents = sr_file_to_string(filename, &error_message);
1275dc
-  const char *input = file_contents;
1275dc
+  char *file_contents = sr_file_to_string(filename, &error_message);
1275dc
+  char *input = file_contents;
1275dc
   struct sr_location location;
1275dc
   sr_location_init(&location);
1275dc
 
1275dc
-- 
1275dc
1.8.3.1
1275dc