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