Permalink
Browse files

First printf test

  • Loading branch information...
1 parent 6928320 commit 06f0bea5fb00380f5f9e5996e7109923b21ead0c @vsedach committed Aug 27, 2012
Showing with 11 additions and 6 deletions.
  1. +4 −0 libc/package.lisp
  2. +6 −5 test/program-tests.lisp
  3. +1 −1 test/programs/hello-world/main.c
View
@@ -140,6 +140,7 @@
#:rename
#:tmpfile
#:tmpnam
+ #:setbuf
#:setvbuf
#:fgetc
#:fputc
@@ -160,6 +161,9 @@
#:rewind
#:fgetpos
#:fsetpos
+ #:fprintf
+ #:printf
+ #:sprintf
))
(deflibcpkg #:vacietis.libc.stdlib.h
@@ -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)
@@ -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.