Add a test for the bkgrndset function

This commit is contained in:
blymn 2022-04-20 07:43:05 +00:00
parent 83e1731bf4
commit 9a1e496d98
6 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2021/11/16 21:02:06 blymn Exp $
# $NetBSD: Makefile,v 1.10 2022/04/20 07:43:05 blymn Exp $
NOMAN= # defined
@ -34,6 +34,8 @@ FILES+= background4.chk
FILES+= background5.chk
FILES+= bell.chk
FILES+= bkgdset1.chk
FILES+= bkgrndset1.chk
FILES+= bkgrndset2.chk
FILES+= blank.chk
FILES+= border_set1.chk
FILES+= border_set2.chk

View File

@ -0,0 +1 @@
thissmsoArmsoissmsoArmsoasmsoArmsotestsmsoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup2;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup3;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup4;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup5;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup6;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup7;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup8;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAcup21;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup22;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup23;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcup24;1XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArmamAsmamcup1;15Xrmso

View File

@ -0,0 +1 @@
homesmsoAAAAAAAAAAAAAAhomermso

View File

@ -2011,6 +2011,16 @@ bkgdset_body()
h_run bkgdset
}
atf_test_case bkgrndset
bkgrndset_head()
{
atf_set "descr" "Validate curses sets the background character using a complex char on stdscr"
}
bkgrndset_body()
{
h_run bkgrndset
}
atf_test_case getbkgd
getbkgd_head()
{

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2021/02/13 06:29:45 rillig Exp $
# $NetBSD: Makefile,v 1.6 2022/04/20 07:43:05 blymn Exp $
NOMAN= # defined
@ -24,6 +24,7 @@ FILES+= attributes
FILES+= background
FILES+= beep
FILES+= bkgdset
FILES+= bkgrndset
FILES+= border_set
FILES+= box
FILES+= box_set

View File

@ -0,0 +1,10 @@
include start
call OK addstr "this is a test"
# background attributes set to standout and A for space
cchar BKGND $STANDOUT "A"
call OK bkgrndset $BKGND
call OK refresh
compare bkgrndset1.chk
call OK erase
call OK refresh
compare bgkrndset2.chk