-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathseq-2.2.9-base707-fix.patch
More file actions
21 lines (21 loc) · 1.19 KB
/
Copy pathseq-2.2.9-base707-fix.patch
File metadata and controls
21 lines (21 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -uri seq-2.2.9/test/compiler/snc_test.plt seq-2.2.9-fix/test/compiler/snc_test.plt
--- seq-2.2.9/test/compiler/snc_test.plt 2021-05-19 13:35:39.000000000 +0200
+++ seq-2.2.9-fix/test/compiler/snc_test.plt 2023-01-27 12:15:47.642857803 +0100
@@ -51,7 +51,7 @@
`make -s -B $prog.i`;
my $failed = 0;
# execute the snc and capture the output
- my $output = `..${dirsep}..${dirsep}..${dirsep}bin${dirsep}${host_arch}${dirsep}snc $prog.i -o $prog.c 2>&1`;
+ my $output = `..${dirsep}..${dirsep}..${dirsep}bin${dirsep}${host_arch}${dirsep}snc $prog.i -o $prog.xc 2>&1`;
# test whether it terminated normally
my $exitsig = $? & 127;
is ($exitsig, 0, "$prog: snc terminates normally") or $failed = 1;
@@ -61,7 +61,7 @@
my $exitcode = $? >> 8;
my $errors_are_expected = $tests->{$prog}->{errors} > 0;
ok(($exitcode != 0) == $errors_are_expected, "$prog: correct exitcode");
- ok(-e "$prog.c" == ($exitcode == 0), "$prog: success <=> creates output file");
+ ok(-e "$prog.xc" == ($exitcode == 0), "$prog: success <=> creates output file");
my $nw = 0;
$nw++ while ($output =~ /warning/g);
is($nw, $tests->{$prog}->{warnings}, "$prog: number of warnings") or $failed = 1;