Skip to content

Commit

Permalink
First printf test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Sedach committed Aug 27, 2012
1 parent 6928320 commit 06f0bea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions libc/package.lisp
Expand Up @@ -140,6 +140,7 @@
#:rename
#:tmpfile
#:tmpnam
#:setbuf
#:setvbuf
#:fgetc
#:fputc
Expand All @@ -160,6 +161,9 @@
#:rewind
#:fgetpos
#:fsetpos
#:fprintf
#:printf
#:sprintf
))

(deflibcpkg #:vacietis.libc.stdlib.h
Expand Down
11 changes: 6 additions & 5 deletions test/program-tests.lisp
Expand Up @@ -18,12 +18,13 @@

(program-test different-comment-styles :return-code 9)

(program-test hello-world0
:output "hello world")
(program-test hello-world0 :output "hello world")

(program-test inc-deref-associativity
:output "123")
(program-test hello-world :output "hello world
")

(program-test inc-deref-associativity :output "123")

;; (program-test kr-echo :input "foobar" :output "foobar")
;; (program-test hello-world :output "hello world")

;; (program-test hardward-ex3)
2 changes: 1 addition & 1 deletion test/programs/hello-world/main.c
@@ -1,5 +1,5 @@
#include <stdio.h>

int main(void) {
printf("hello world");
printf("hello world\n");
}

0 comments on commit 06f0bea

Please sign in to comment.