aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/tests/history.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bc/tests/history.py')
-rwxr-xr-xcontrib/bc/tests/history.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/contrib/bc/tests/history.py b/contrib/bc/tests/history.py
index 84e32f9612c4..ced05fe7219f 100755
--- a/contrib/bc/tests/history.py
+++ b/contrib/bc/tests/history.py
@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
-# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
+# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -128,7 +128,7 @@ def write_str(child, s):
def bc_banner(child):
bc_banner1 = "bc [0-9]+\.[0-9]+\.[0-9]+\r\n"
bc_banner2 = "Copyright \(c\) 2018-[2-9][0-9][0-9][0-9] Gavin D. Howard and contributors\r\n"
- bc_banner3 = "Report bugs at: https://git.yzena.com/gavin/bc\r\n\r\n"
+ bc_banner3 = "Report bugs at: https://git.gavinhoward.com/gavin/bc\r\n\r\n"
bc_banner4 = "This is free software with ABSOLUTELY NO WARRANTY.\r\n\r\n"
expect(child, bc_banner1)
expect(child, bc_banner2)
@@ -251,7 +251,7 @@ def test_sigint_sigquit(exe, args, env):
try:
send(child, "\t")
- expect(child, " ")
+ expect(child, "\t")
send(child, "\x03")
# send(child, "\x1c")
wait(child)
@@ -282,8 +282,11 @@ def test_eof(exe, args, env):
child = pexpect.spawn(exe, args=args, env=env)
try:
- send(child, "\t")
- expect(child, " ")
+ send(child, "123")
+ expect(child, "123")
+ send(child, "\x01")
+ send(child, "\x04")
+ send(child, "\x04")
send(child, "\x04")
wait(child)
except pexpect.TIMEOUT:
@@ -317,7 +320,7 @@ def test_sigint(exe, args, env):
try:
send(child, "\t")
- expect(child, " ")
+ expect(child, "\t")
send(child, "\x03")
wait(child)
except pexpect.TIMEOUT:
@@ -352,7 +355,7 @@ def test_sigtstp(exe, args, env):
try:
send(child, "\t")
- expect(child, " ")
+ expect(child, "\t")
send(child, "\x13")
time.sleep(1)
if not child.isalive():
@@ -392,7 +395,7 @@ def test_sigstop(exe, args, env):
try:
send(child, "\t")
- expect(child, " ")
+ expect(child, "\t")
send(child, "\x14")
time.sleep(1)
if not child.isalive():
@@ -675,7 +678,7 @@ def test_bc7(exe, args, env):
send(child, "\x1b[0;4\x1b[0A")
send(child, "\n")
expect(child, prompt)
- send(child, " ")
+ send(child, "\t")
send(child, "\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb\x1bb")
send(child, "\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf\x1bf")
send(child, "\n")