renamed init_test() to test_init() and defined

This commit is contained in:
jlamothe 2023-11-04 21:21:12 +00:00
parent 3c0ab0ecd7
commit 2a24b1586f
4 changed files with 16 additions and 5 deletions

6
mkfile
View File

@ -3,11 +3,11 @@
qfmt: main.$O lib.$O
$LD $LDFLAGS -o qfmt main.$O lib.$O
$O.qfmt: test.$O lib.$O
$LD $LDFLAGS -o $O.qfmt test.$O lib.$O
$O.qfmt: test.$O test/init.$O lib.$O
$LD $LDFLAGS -o $O.qfmt test.$O test/init.$O lib.$O
TEST=qfmt
</sys/src/cmd/mktest
#jl
#jl

2
test.c
View File

@ -6,7 +6,7 @@
void
main()
{
init_test();
test_init();
exits(0);
}

11
test/init.c Normal file
View File

@ -0,0 +1,11 @@
#include <u.h>
#include <libc.h>
void
test_init()
{
print("testing: init()");
print("tests not yet defined");
}
//jl

View File

@ -1,3 +1,3 @@
extern void init_test();
extern void test_init();
//jl