forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-shells/fish: fix single test failing on 32bit arches
Closes: https://bugs.gentoo.org/656246 Package-Manager: Portage-2.3.54, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev <[email protected]>
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 2c01e67a74ca48ca87e2f11f6239d54c35551e7b Mon Sep 17 00:00:00 2001 | ||
From: David Adam <[email protected]> | ||
Date: Sat, 5 Jan 2019 15:59:25 +0800 | ||
Subject: [PATCH] histfile tests: tweak expect commands to avoid crash on | ||
32-bit platforms | ||
|
||
Rather than killing the process with close, read EOF after sending the | ||
"exit" command and wait for OS cleanup (per the expect examples). | ||
|
||
Not cleaning up with wait caused expect to crash on all 32-bit platforms | ||
including i586 and armv7l with "alloc: invalid block: 0xbf993ccb: 3d 3b". | ||
|
||
64-bit platforms were not affected, for reasons that are not clear. | ||
--- | ||
tests/histfile.expect | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/tests/histfile.expect b/tests/histfile.expect | ||
index 81ca11276..7ac056235 100644 | ||
--- a/tests/histfile.expect | ||
+++ b/tests/histfile.expect | ||
@@ -92,7 +92,8 @@ expect_prompt -re "\r\n$hist_line\r\n" { | ||
# ============= | ||
# Start by shutting down the previous shell. | ||
send "exit\r" | ||
-close $spawn_id | ||
+expect eof | ||
+wait | ||
|
||
# Set the fish_history env var. | ||
set ::env(fish_history) env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters